/filehound

Flexible and fluent interface for searching the file system

Primary LanguageTypeScriptMIT LicenseMIT

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