read-dir-names
v1.0.0
Published
Returns an array of the names of all directories within another directory
Downloads
280
Readme
read-dir-names
Returns an array of the names of all directories within another directory
Installation
$ npm i read-dir-names
or
$ yarn add read-dir-names
Usage
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