【文件属性】:
文件名称:npm-utils:异步NPM Shell命令
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-01 19:27:33
npm utils JavaScript
npm-utils
异步NPM Shell命令:安装,测试等。
用
var npmUtils = require ( 'npm-utils' ) ;
npmUtils . version ( )
. then ( function ( semver ) {
console . log ( 'NPM version %s' , semver ) ;
} ) ;
原料药
NPM命令路径
path ( ) // returns immediately path to npm command
安装
install ( {
name : string ,
version : string ( optional ) ,
prefix : string ( optional ) , // folder path prefix
passThroughData : obj
【文件预览】:
npm-utils-master
----.gitignore(87B)
----README.md(6KB)
----next-update-travis.sh(2KB)
----bin()
--------set-auth-token-var-name.js(415B)
----History.md(423B)
----jshint.json(121B)
----Gruntfile.js(467B)
----.jshintrc(2KB)
----package.json(3KB)
----src()
--------npm-prune.js(1006B)
--------test()
--------form-auth-token.js(949B)
--------pack.js(1KB)
--------npm-version.js(1KB)
--------get-package.js(342B)
--------npm-increment-version.js(682B)
--------module-install.js(2KB)
--------set-auth-token-spec.js(2KB)
--------module-install-spec.js(1KB)
--------url.js(497B)
--------publish.js(1018B)
--------npm-test.js(1KB)
--------npm-path.js(202B)
--------index.js(659B)
--------repo-install.js(1KB)
--------set-auth-token.js(2KB)
--------npm-prune-spec.js(1KB)
----renovate.json(164B)
----complexity.json(183B)
----.travis.yml(406B)
----.npmrc(52B)