listjs
Display all JS files of a Node.js project.
Install
npm install listjs -S
Usage
const listJS = require('./listjs');
const ignore = ['bower_components', 'foo', 'test'];
listJS('project/path/here', ignore)
.then((files) => {
console.log(files);
})
.catch((e) => {
console.error(e);
});