ngrep

0.1.0 • Public • Published

ngrep - asynchronous grep

Copyright (C) 2011 by Maciej Małecki

MIT License (see LICENSE file)

ngrep does what grep does, but asynchronously.

Installation

As an executable

npm -g install ngrep

As a library

npm install ngrep

Usage

As an executable

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.

As a library

To grep directory dir for RegExp /foo/g:

var ngrep = require('ngrep');
ngrep(/foo/g, 'dir', function (result) {
  console.log(result.file + '' + console.context);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2
  • 0.0.0
    0

Package Sidebar

Install

npm i ngrep

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mmalecki