@lvce-editor/ripgrep
Version:
A module for using ripgrep in a Node project
27 lines (17 loc) • 550 B
Markdown
A module for using [ripgrep](https://github.com/BurntSushi/ripgrep/) in a Node project.
This package re-exports `rgPath` from [vscode-ripgrep](https://github.com/microsoft/vscode-ripgrep).
```sh
$ npm install @lvce-editor/ripgrep
```
```js
import { rgPath } from '@lvce-editor/ripgrep'
import { spawn } from 'node:child_process'
const childProcess = spawn(rgPath, ['abc', '.'], {
stdio: 'inherit',
})
```
This project is very much based on https://github.com/microsoft/vscode-ripgrep by Microsoft.