subdirs
v1.0.1
Published
list of all subdirectories
Downloads
144,512
Readme
subdirs
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 toInfinity
License
MIT