https://github.com/lvce-editor/ripgrep
A module for using ripgrep in a Node project.
https://github.com/lvce-editor/ripgrep
lvce-editor ripgrep
Last synced: 21 days ago
JSON representation
A module for using ripgrep in a Node project.
- Host: GitHub
- URL: https://github.com/lvce-editor/ripgrep
- Owner: lvce-editor
- License: mit
- Created: 2023-10-14T11:39:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-19T17:25:42.000Z (about 1 month ago)
- Last Synced: 2025-04-25T07:39:29.259Z (27 days ago)
- Topics: lvce-editor, ripgrep
- Language: JavaScript
- Homepage:
- Size: 480 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ripgrep
A module for using [ripgrep](https://github.com/BurntSushi/ripgrep/) in a Node project.
Same as [vscode-ripgrep](https://github.com/microsoft/vscode-ripgrep), but fixes the github rate limiting error `Downloading ripgrep failed: Error: Request failed: 403` by downloading the files directly instead of also using the github rest api.
## Install
```
$ npm install @lvce-editor/ripgrep
```## Usage
```js
import { rgPath } = from "@lvce-editor/ripgrep"
import { spawn } from 'node:child_process'const childProcess = spawn(rgPath, ["abc", "."], {
stdio: "inherit",
});
```## Gitpod
[](https://gitpod.io#https://github.com/lvce-editor/ripgrep)
## Credits
This project is very much based on https://github.com/microsoft/vscode-ripgrep by Microsoft.