Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

children-dirs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

children-dirs

Get paths of directories in a directory

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

children-dirs Build status for Children Dirs

Get paths of directories in a directory.

Why?

Install

npm install children-dirs --save

Usage

Get it into your program.

const childrenDirs = require('children-dirs');

Get a list of directories.

const dirs = await childrenDirs();
console.log(dirs);
// => ['/home/me/my-project/.git', '/home/me/my-project/lib']

API

childrenDirs(cwd)

Returns a Promise for an Array of absolute paths for directories that are immediate children of cwd.

cwd

Type: string
Default: process.cwd()

The directory to search.

Contributing

See our contributing guidelines for more details.

  • Fork it.
  • Make a feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request.

License

MPL-2.0 © Seth Holladay

Go make something, dang it.

Keywords

get

FAQs

Package last updated on 29 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts