1.0.1 • Published 7 years ago

subdirs v1.0.1

Weekly downloads
31,817
License
MIT
Repository
github
Last release
7 years ago

subdirs

Build Status npm install npm version js-standard-style License

get a list of all subdirectories

Usage

var subdirs = require('subdirs')

subdirs(root, function (err, dirs) {
  console.log(dirs) // all of your subdirs are in here!
})


// or..

subdirs(root)
  .then(function (dirs) {
    // all of your subdirs are in _here!_
  })

API

subdirs(rootDir[, depth, callback])

Notes

  • If callback is omitted, a promise is returned.
  • If depth is omitted, it defaults to Infinity

License

MIT