List directories or files, async or sync.
Install with npm
npm i dirs --save
var list = require('dirs');
Pass the starting directory:
// async
list('.', function (err, files) {
if (err) console.log(err);
//=> ['.gitattributes', '.gitignore', '.jshintrc', ...]
});
// sync
list('.');
//=> ['.gitattributes', '.gitignore', '.jshintrc', ...]
Install dev dependencies.
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 22, 2015.