package
A module for using ripgrep in a Node project
npm install @vscode/ripgrepGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
This is an npm module for using ripgrep in a Node project. It's used by VS Code.
build/prepare-binaries.js, verified against binaries.lock.json (SHA256), and placed under bin/<target>/rg[.exe]. They ship inside the npm tarball.lib/index.js resolves rgPath from process.platform/process.arch to the correct bin/<target>/<binary>.postinstall step and no runtime network access.const { rgPath } = require('@vscode/ripgrep');
// child_process.spawn(rgPath, ...)VERSION (or MULTI_ARCH_VERSION) constant in lib/platforms.js.npm run update-lock. This re-downloads every platform's archive and rewrites binaries.lock.json with the fresh SHA256 hashes.lib/platforms.js and binaries.lock.json.npm run prepare-binaries — downloads any missing binaries and verifies them against binaries.lock.json. Fails on hash mismatch.npm run prepare-binaries -- --force — forces a clean re-download (still verifies).npm run update-lock — refreshes binaries.lock.json after a version bump.Set GITHUB_TOKEN to avoid GitHub's anonymous API rate limit during downloads.
lszomoru
lszomoru@microsoft.com
Estimated unpacked size across 13 packages.
55.3 MB
Includes dependencies.
12 direct dependencies.
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0
1.18.0