Copyright (C) 2011 by Maciej Małecki
MIT License (see LICENSE file)
ngrep does what grep does, but asynchronously.
npm -g install ngrep
npm install ngrep
To grep directory dir for string foo: ngrep foo dir (it couldn't get
any simpler than that).
It can also grep files, but this is just slower than regular grep:
ngrep foo file.
To grep directory dir for RegExp /foo/g:
var ngrep = require('ngrep');
ngrep(/foo/g, 'dir', function (result) {
console.log(result.file + ': ' + console.context);
});