require-global
v2.2.1
Published
Allow node.js to load global installed modules. | 使 NodeJs 能 require 载入全局安装的模块。
Downloads
4
Readme
Require-global
Allow node.js to load global modules from custom paths
> npm install -g require-global
Examples
Load modules from the path where require-global locates.
require('require-global')
Load modules from custom path.
require('require-global')("D:\mywork\node_modules")
使 NodeJs 能 require 载入全局安装的模块。
> npm install -g require-global
示例
让 Node 能从 require-global 所在目录加载其它模块。
require('require-global')
让 Node 能从自定义目录加载其它模块。
require('require-global')("D:\mywork\node_modules")