readdir-recursively-sync
v1.0.3
Published
A simple, zero-dependency readdir-recursively module.
Downloads
158
Readme
readdir-recursively-sync
A simple, zero-dependecy readdir-recursively module.
Usage
Nested Array Path
const { readdirRecursivelySync } = require('readdir-recursively-sync')
const files = readdirRecursivelySync('nested/dir/path/')
Flatten Array Path
const { readdirRecursivelySyncFlatten } = require('readdir-recursively-sync')
const files = readdirRecursivelySyncFlatten('nested/dir/path/')
Notes
- arg
option
is same tofs.readdir
. - supports Node.js 8.x+
Licence
MIT