subdirs

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    30,325
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    30,325
  • 1.0.0
    0
  • 0.1.0
    1
  • 0.0.0
    801

Package Sidebar

Install

npm i subdirs

Weekly Downloads

31,127

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jarofghosts