Flexible and fluent interface for searching the file system
npm install --save filehound
The example below prints all of the files in a directory that have the .json
file extension:
const FileHound = require('filehound');
const files = FileHound.create()
.paths('/some/dir')
.ext('json')
.find();
files.then(console.log);
For more examples and API details, see API documentation
npm test
To generate a test coverage report:
npm run coverage
- Finding files by content - FileSniffer
- Editing text files - FileSurgeon
- File object - File-js