Returns an array of the names of all directories within another directory
$ npm i read-dir-names
or
$ yarn add read-dir-names
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'
MIT © Lukas Aichbauer