0.1.1 • Published 3 years ago

node-dir-structure v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

node-dir-structure

Provides a Node.js function that outputs the directory structure as an object.

software version

Node.js v14.18.0

Usage

You can convert the directory structure to a javascript object by specifying the path in the argument of the createStructure function provided by node-dir-structure.

// type (path: string) => Structure.Item
createStructure(path: string)

The return value is an object that contains directory structure data. Please check by the following method.

const dirStructure = createStructure("path/")
console.log(dirStructure)