Flexible and fluent interface for searching the file system
TypeScript JavaScript CSS
Latest commit 4d43e4d Apr 28, 2018

README.md

Filehound

NPM downloads Build Status Coverage Status license github-issues stars forks

Flexible and fluent interface for searching the file system

Installation

npm install --save filehound

Demo

Usage

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);

Documentation

For more examples and API details, see API documentation

Test

npm test

To generate a test coverage report:

npm run coverage

Contributing

See contributing guide

Related modules