list-dir
v1.2.0
Published
Recursively list directory
Downloads
968
Readme
list-dir
Simple function to list directory contents recursively (returns relative paths of files);
Installation
$ npm install list-dir --save
Usage
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');
Tests
$ make test
License
MIT © Vadym Demedes