JSPM

@joshua.litt/get-ripgrep

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 224758
  • Score
    100M100P100Q183927F
  • License MIT

A module for downloading ripgrep at runtime a Node project

Package Exports

  • @joshua.litt/get-ripgrep
  • @joshua.litt/get-ripgrep/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@joshua.litt/get-ripgrep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This package is a temporary fork of @lvce-editor/ripgrep

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",
});

Gitpod

Open in Gitpod

Credits

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