https://github.com/aichbauer/node-read-dir-names
Returns an array of the names of all directories within another directory
https://github.com/aichbauer/node-read-dir-names
dir directory folders names nodejs read
Last synced: about 2 months ago
JSON representation
Returns an array of the names of all directories within another directory
- Host: GitHub
- URL: https://github.com/aichbauer/node-read-dir-names
- Owner: aichbauer
- License: mit
- Created: 2017-09-14T15:16:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T15:35:49.000Z (over 8 years ago)
- Last Synced: 2025-10-31T18:20:25.021Z (7 months ago)
- Topics: dir, directory, folders, names, nodejs, read
- Language: JavaScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# read-dir-names
> Returns an array of the names of all directories within another directory
[](https://travis-ci.org/aichbauer/node-read-dir-names)
[](https://ci.appveyor.com/project/aichbauer/node-read-dir-names)
[](https://coveralls.io/github/aichbauer/node-read-dir-names?branch=master)
## Installation
```sh
$ npm i read-dir-names
```
or
```sh
$ yarn add read-dir-names
```
## Usage
```js
const readDirNames = require('read-dir-names'); // import readDirNames from 'read-dir-names';
readDirNames(); // returns the names of directories within process.cwd()
readDirNames('path/to/dir'); // returns the names of directories within 'path/to/dir'
```
## LICENSE
MIT © Lukas Aichbauer