dirs
List directories or files, async or sync.
Last updated 11 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dirs 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.2.0                                ...           latest (11 years ago)

4 Versions

  • 0.2.0                                ...           11 years ago
  • 0.1.2                                ...           12 years ago
  • 0.1.1                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 1
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |