redir
v1.0.6
Published
iterative REcursive readDIR
Downloads
6
Maintainers
Readme
REDir - iterative REcursive readDIR
no dependencies, no recursion, tiny, fast and simple
Installation
npm install redir
Usage
const REDir = require('redir')
or
import * as REDir from "redir"
const options = {
withStat: Boolean,
fileOnly: Boolean,
directoryOnly: Boolean
}
const items = REDir('./target-path', options)
console.log(items)
// withStat: false => [path, path, ...]
// withStat: true => {path: stat, path: stat, ...}