npm-root:获取节点模块目录,又名npm根目录。 全球或本地

时间:2021-05-17 16:57:06
【文件属性】:
文件名称:npm-root:获取节点模块目录,又名npm根目录。 全球或本地
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-17 16:57:06
JavaScript npm-root 获取节点模块目录,又名npm根目录。 全球或本地。 安装 使用安装npm-root : npm install --save npm-root 用法 模块使用 var npmRoot = require ( 'npm-root' ) ; // Get the local node_modules path: npmRoot ( function ( err , localPath ) { // ... } ) ; // Get the local node_modules path for another directory: npmRoot ( { cwd : '/path/to/other/folder' } , function ( err , localPath ) { // ... } ) ; // Get the global node_modu
【文件预览】:
npm-root-master
----index.js(393B)
----test.js(1014B)
----package.json(684B)
----.npmignore(8B)
----.gitignore(14B)
----README.md(1KB)

网友评论