1.0.1 • Published 9 years ago

fgrep v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

fgrep

Search for a given string in specified files.

As requested by David Herman

USAGE

var fgrep = require('fgrep')

// options:
// - limit: defaults to 10, how many files to read at once
// - nocase: defaults false, do a case-insensitive search
fgrep(string, filenames, options)
  .on('data', function (match) {
    // match is { filename, linenumber, line }
  })
  .on('end', function () {
    // done matching
  })

// or if you prefer being classy, but it's the same thing
var FGrep = require('fgrep')
var fg = new FGrep(string, filenames, limit)
1.0.1

9 years ago

1.0.0

9 years ago