没有合适的资源?快使用搜索试试~ 我知道了~
require-dir-all:另一个Node.js助手需要目录中的所有文件
共101个文件
js:57个
json:22个
md:9个
需积分: 9 0 下载量 172 浏览量
2021-05-09
12:51:53
上传
评论
收藏 88KB ZIP 举报
温馨提示
全部要求 另一个Node.js助手require目录中的所有文件。 当需要在同一目录中require具有相似功能的文件组时很有用,例如路由,控制器,中间件,模型,配置,gulp任务等。 受和软件包的启发。 他们两个都很好,但是第一个都缺乏相对路径支持(需要使用__dirname ) 并且总是递归的,而第二个缺少文件/目录过滤, 由于某种原因,模块以非分层结构存储,仅从多个具有相同名称的文件中获取一个文件并且不可能在每个需要的文件上自动运行功能。 如果您对功能有不同的需求,请添加。 安装 npm install --save require-dir-all 用法 将0.2.x升级到0.3 对于具有相同名称的文件和目录,行为将从覆盖更改为合并。 这意味着,如果您在同一个目录文件和具有任何内容的子目录中,则该内容将与文件的内容合并。 如果文件包含对象,则对象的键将被合并。 但是,如果文件返
资源推荐
资源详情
资源评论
收起资源包目录
require-dir-all:另一个Node.js助手需要目录中的所有文件 (101个子文件)
.editorconfig 245B
.eslintignore 25B
.eslintrc 89B
.gitattributes 12B
.gitignore 81B
.gitkeep 0B
index.js 10KB
index.js 9KB
app.js 1KB
app.js 1KB
index.js 1KB
index.js 1005B
gulpfile.js 815B
app.js 759B
gulpfile.js 649B
app.js 607B
app.js 414B
app.js 397B
app_old.js 375B
task2.js 371B
default.js 298B
module1.js 288B
module2.js 285B
task3.js 249B
task1.js 249B
index.js 226B
client.js 202B
index.js 200B
app.js 187B
index.js 184B
module1.js 183B
module2.js 183B
task1.js 183B
task2.js 183B
index.js 133B
index.js 130B
dir1.js 130B
index.js 128B
index.js 121B
index.js 116B
module2.js 76B
module2.js 76B
module1.js 75B
module1.js 75B
index.js 71B
index.js 71B
excluded.js 55B
excluded.js 55B
module1.js 50B
module5.js 50B
module4.js 50B
module3.js 50B
module2.js 50B
module2.js 50B
module1.js 50B
module1.js 50B
module2.js 50B
module1.js 50B
module2.js 50B
module2.js 50B
module1.js 50B
module1.js 50B
module2.js 50B
.jshintrc 433B
.jsinspectrc 109B
package-lock.json 198KB
package.json 3KB
package.json 408B
package.json 187B
package.json 187B
index.json 144B
package.json 137B
package.json 137B
package.json 137B
test.json 126B
index.json 126B
index.json 126B
inch.json 87B
index.json 69B
index.json 68B
https.json 65B
index.json 57B
index.json 53B
index.json 51B
index.json 51B
config.json 24B
http.json 19B
LICENSE 1KB
README.md 14KB
README.md 43B
README.md 43B
README.md 43B
README.md 43B
README.md 43B
README.md 43B
README.md 43B
README.md 43B
.npmignore 0B
all_demos.sh 562B
excluded.txt 35B
共 101 条
- 1
- 2
资源评论
靳骁曈
- 粉丝: 23
- 资源: 4680
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功