文件名称:directory-tree-promise:异步返回目录树作为JS对象
文件大小:9KB
文件格式:ZIP
更新时间:2024-06-01 07:59:47
JavaScript
目录树承诺 安装 npm install directory-tree-promise 用法 在遍历目录树时使用异步等待。 const directoryTree = require ( 'directory-tree-promise' ) const tree = await directoryTree ( './example' ) tree输出: { " path " : " ./example " , " name " : " example " , " children " : [ { " path " : " example/subfolder " , " name " : " subfolder " , " children " : [ // excluded ],
【文件预览】:
directory-tree-promise-master
----.travis.yml(36B)
----.babelrc(53B)
----package.json(1KB)
----test()
--------test.js(560B)
--------src()
----LICENSE(1KB)
----dist()
--------directory-tree.js.map(4KB)
--------directory-tree.js(5KB)
----.gitignore(37B)
----lib()
--------directory-tree.js(2KB)
----README.md(2KB)