Thursday, 2 May 2019

ripgrep-node A simple js wrapper for ripgrep and node

I just published a small dependency free package to use ripgrep from a node package. Underlying, it is simply using exec to run the built command and accessing the output. The syntax is simlar to that of rg itself.So in rg, we can run rg --pretty --json someregex /path/to/grep, and in ripgrep-node, we can use:rg.pretty().json().run().asObject()​OOB, it supports all the options from ripgrep 11.0.1. Docs can be built using typedoc, and is directly from the man pages for rg​https://www.npmjs.com/package/ripgrep-node

Submitted May 02, 2019 at 10:28PM by securisec

No comments:

Post a Comment