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

Dependents (8)

Package Sidebar

Install

npm i subdirs

Weekly Downloads

28,396

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jarofghosts