
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
vscode-ripgrep-utils
Advanced tools
Utils to make it easy to call ripgrep in VSCode's extensions.
yarn add vscode-ripgrep-utils
VSCode use ripgrep to search files. There is a rg binary in VSCode's installation directory, but the location differs on different platforms and different versions. This package provides a getBinPath function to get the absolute path of the rg binary.
import * as vscode from "vscode";
import { getBinPath } from "vscode-ripgrep-utils";
await getBinPath(vscode.env.appRoot);
Then you can use the high level search function to search files, or the low level exec/execJson functions to execute ripgrep with custom arguments.
import * as vscode from "vscode";
import { getBinPath, search, exec, execJson } from "vscode-ripgrep-utils";
const bin = await getBinPath(vscode.env.appRoot);
await search({ bin, folder: "./", regex: "123" });
await exec(bin, "--version");
await execJson(bin, "-e", "123");
Enable debug to see what command is executed.
import { config } from "vscode-ripgrep-utils";
config.debug = true;
This project is inspired by Gruntfuggly/todo-tree and alexlafroscia/ripgrep-js.
FAQs
Utils to make it easy to call ripgrep in VSCode's extensions.
The npm package vscode-ripgrep-utils receives a total of 4 weekly downloads. As such, vscode-ripgrep-utils popularity was classified as not popular.
We found that vscode-ripgrep-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.