resolve-npm-git:将 npm git 依赖项解析为 package.json 中的 git 修订版

时间:2021-07-02 16:23:21
【文件属性】:
文件名称:resolve-npm-git:将 npm git 依赖项解析为 package.json 中的 git 修订版
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-02 16:23:21
JavaScript 解决 npm-git 将 npm git 依赖项解析为 package.json 中的 git 修订版。 允许 npm 在重新安装时正确缓存依赖项 npm install resolve-npm-git 用法 var resolve = require ( 'resolve-npm-git' ) resolve ( requre ( './package.json' ) , function ( err , resolved ) { // all git dependencies in package.json that contain #{some-tag} // have been resolved to #{revision} } ) 命令行使用 npm install -g resolve-npm-git cd some-node-module resolve-np
【文件预览】:
resolve-npm-git-master
----LICENSE(1KB)
----README.md(850B)
----bin.js(454B)
----.gitignore(13B)
----index.js(2KB)
----package.json(641B)

网友评论