【文件属性】:
文件名称:export-dirs:将目录及其文件导出为 node.js 模块
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-18 09:27:43
JavaScript
导出目录
将目录及其文件导出为 node.js 模块。
使用安装
npm i export-dirs --save
用法
var dirs = require ( 'export-dirs' ) ;
示例输出
当与结合使用时, 的文件和目录会导致:
// all files and directories are flattened onto the `_` object
{ _ :
{ z : [ Function ] ,
y : [ Function ] ,
x : [ Function ] ,
f : [ Function ] ,
e : [ Function ] ,
d : [ Function ] ,
i : [ Function ] ,
h : [ Function ] ,
g :
【文件预览】:
export-dirs-master
----.jshintrc(281B)
----.gitignore(120B)
----package.json(918B)
----.travis.yml(88B)
----LICENSE(1KB)
----index.js(1KB)
----test.js(847B)
----.verb.md(1KB)
----README.md(2KB)
----.gitattributes(127B)
----fixtures()
--------two()
--------index.js(59B)
--------y.js(65B)
--------one()
--------three()
--------z.js(65B)
--------x.js(65B)
----.editorconfig(424B)