1.0.3 • Published 6 years ago
filesniffer v1.0.3
FileSniffer
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
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.3-alpha.1
6 years ago
0.0.2-alpha.1
7 years ago
0.0.2
8 years ago
0.0.1
8 years ago