npm install subdirs




get a list of all subdirectories
``js
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!_
})
`
subdirs(rootDir[, depth, callback])
* If callback is omitted, a promise is returned.depth
* If is omitted, it defaults to Infinity`
MIT