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

    Keywords

    Install

    npm i subdirs

    DownloadsWeekly Downloads

    28,140

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • jarofghosts