node-extended-require:Node.JS 的增强需求

时间:2024-06-28 12:48:01
【文件属性】:

文件名称:node-extended-require:Node.JS 的增强需求

文件大小:19KB

文件格式:ZIP

更新时间:2024-06-28 12:48:01

JavaScript

Node.JS 的扩展需求 扩展require()功能。 安装 您可以使用npm安装: npm install extended-require 用法 /path/to/project/index.js : var er = require ( "extended-require" ) ; var extendedRequire = er . require ; // creates a new include path set // only files under /path/to/project/lib will use that include path set // you can create as many include path sets as you want var includePath = er . newIncludePath (


【文件预览】:
node-extended-require-master
----lib()
--------include-path.js(4KB)
--------extended-require.js(9KB)
----.travis.yml(66B)
----LICENSE(1KB)
----README.md(6KB)
----tests()
--------fixtures()
--------extended-require-test.js(9KB)
--------tests.js(68B)
--------include-path-test.js(5KB)
----.gitignore(45B)
----package.json(954B)

网友评论