@aniojs/node-fs-scandir

0.2.2 • Public • Published

@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")
)

Readme

Keywords

none

Package Sidebar

Install

npm i @aniojs/node-fs-scandir

Weekly Downloads

22

Version

0.2.2

License

MIT

Unpacked Size

108 kB

Total Files

12

Last publish

Collaborators

  • exory2024