npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

dirs

0.2.0 • Public • Published

dirs NPM version Build Status

List directories or files, async or sync.

Install with npm

npm i dirs --save

Usage

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', ...] 

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 22, 2015.

install

npm i dirs

Downloadsweekly downloads

48

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability