Simple function to list directory contents recursively (returns relative paths of files);
$ npm install list-dir --save
const list = require('list-dir');
// sync
let files = list.sync('/path/to/dir');
// promises
list('/path/to/dir').then(function (files) {
// done
});
// generators
let files = yield list('/path/to/dir');
$ make test
MIT © Vadym Demedes