@aniojs/node-fs-scandir
v0.2.2
Published
Read a directory recursively.
Downloads
648
Readme
@aniojs/node-fs-scandir
Read a directory recursively.
import {scandir, scandirSync} from "@aniojs/node-fs-scandir"
/*
{
type: 'regularFile',
parents: [],
name: 'example.mjs',
path: '/root/examples/example.mjs',
relative_path: 'example.mjs',
absolute_path: '/root/examples/example.mjs'
}
*/
console.log(
await scandir("examples")
)
console.log(
scandirSync("examples")
)