npm install dir2> Get all directories within a directory.
``bash`
$ npm install --save dir2
`js
const dir2 = require('dir2')
// async
dir2('.')
.then(dirs => {
console.log(dirs)
// => ['.git', 'node_modules']
})
// sync
dir2.sync('.')
`
#### sourceDirectory
Type: stringtrue
Required:
The directory to look into.
#### options
##### prefix
Type: Booleanfalse
Default:
Prefixing source path to returned directory name. Like .git => /source/path/.git`.
MIT © EGOIST