simple-grep
easy grep utlity for node.js
Last updated 6 years ago by benjamin_st .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install simple-grep 
SYNC missed versions from official npm registry.

#A Simpler Grep easy grepping in node.js

##How to get it

npm install simple-grep

##How to use it

var grep = require('simple-grep');
grep('search string', 'a directory or file', function(list){
  console.log(list);
});

Output

[
  {
    file: filename, 
    results:  [
                {line_number: 'n', line: 'text'},
                {line_number: 'n', line: 'text'}
              ]
  },
  {
    file: filename, 
    results:  [
                {line_number: 'n', line: 'text'},
                {line_number: 'n', line: 'text'}
              ]
  }
]

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |