UNPKG

@lvce-editor/ripgrep

Version:

A module for using ripgrep in a Node project

12 lines (9 loc) 256 B
import { dirname, join } from 'node:path' import { fileURLToPath } from 'node:url' const __dirname = dirname(fileURLToPath(import.meta.url)) export const rgPath = join( __dirname, '..', 'bin', `rg${process.platform === 'win32' ? '.exe' : ''}`, )