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

    3,481

    Version

    1.0.3

    License

    Apache-2.0

    Last publish

    Collaborators

    • nspragg