Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jgrep with all npm packages installed. Try it out:

var jgrep = require("jgrep")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jgrep v1.0.4

Recursive grep.

jgrep

Recursive grep.

Getting Started

Install the module with: npm install jgrep

Examples

Search for something starting from current directory.

$ jgrep waldo

Search for something only in current directory.

$ jgrep waldo --norecurse

Search for something including even hidden dirs (eg: .git, .svn).

$ jgrep waldo --hidden

Search for something excluding some dirs.

$ jgrep waldo -i node_modules,logs

Case insensitive search starting from Foo's home directory.

$ jgrep waldo -p /Users/foo --nocase

Search for all terms (contained in a file) in files with specified extensions.

$ jgrep /Users/foo/terms.txt -p /Users/foo -e js,.json

License

Copyright (c) 2014 Mustafa Rizvi
Licensed under the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free