npm install fuf
import fuf from 'fuf'
fuf('target/directory', 'files/directory/**.*')
.then(results => {
console.log(results.unused)
console.log(results.used)
})
fuf
find filenames that will be tested for usage.fuf
find the usage of those filenames in files from a target directory.fuf
output a list of unused files and a list of used files.
- Clone and fork this repo.
- Install dependencies:
npm install
. - Do your stuff.
- Run tests.
- Prepare a pull request.
npm install --global np
np
Made with ❤️ by Rubens Mariuzzo.