npm

Need private packages and team management tools?Check out npm Orgs. »

filesniffer

1.0.3 • Public • Published

FileSniffer

Build Status Coverage Status

Find files by matching contents

Installation

npm install --save filesniffer

Usage

// Searches for `someString` in `/tmp/test.txt`, returning all matches as an array 
const matches = await FileSniffer.create()
  .path('/tmp/test.txt')
  .depth(1)
  .collect(asArray())
  .find('someString');
 
  console.log(matches); // array of matching lines

Documentation

For more examples and API details, see API documentation

Test

npm test

Test Coverage

To generate a test coverage report:

npm run coverage

Contributing

See contributing guidelines

install

npm i filesniffer

Downloadsweekly downloads

207

version

1.0.3

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability