@lvce-editor/ripgrep
A module for using ripgrep in a Node project
Last updated 5 months ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lvce-editor/ripgrep 
SYNC missed versions from official npm registry.

ripgrep

A module for using ripgrep in a Node project.

Same as 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

import { rgPath } from '@lvce-editor/ripgrep'
import { spawn } from 'node:child_process'

const childProcess = spawn(rgPath, ['abc', '.'], {
  stdio: 'inherit',
})

Environment Variables

  • RIPGREP_PREBUILT_BINARIES_MIRROR: Specify a custom mirror URL for downloading ripgrep prebuilt binaries. This is useful for users in regions where GitHub releases are slow or inaccessible, or for organizations using internal mirrors.
    • Default: https://github.com/microsoft/ripgrep-prebuilt/releases/download
    • Example: export RIPGREP_PREBUILT_BINARIES_MIRROR=https://your-mirror.com/ripgrep-prebuilt/releases/download
    • Note: The mirror URL should follow the same path structure as the official repository, with binaries available at {mirror-url}/{version}/ripgrep-{version}-{target}

Credits

This project is very much based on https://github.com/microsoft/vscode-ripgrep by Microsoft.

Current Tags

  • 4.1.0                                ...           latest (5 months ago)

19 Versions

  • 4.1.0                                ...           5 months ago
  • 4.0.0                                ...           6 months ago
  • 3.1.0                                ...           6 months ago
  • 3.0.0                                ...           6 months ago
  • 2.5.1                                ...           6 months ago
  • 2.4.0                                ...           7 months ago
  • 2.3.0                                ...           7 months ago
  • 2.2.0                                ...           7 months ago
  • 2.1.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.6.0                                ...           a year ago
  • 1.5.0                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (7)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |