🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

resolve-npm-git

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-npm-git

Resolve npm git dependencies to a git revision in a package.json

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

resolve-npm-git

Resolve npm git dependencies to a git revision in a package.json. Allows npm to cache the dependency properly when reinstalling

npm install resolve-npm-git

Usage

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}
})

Command line usage

npm install -g resolve-npm-git
cd some-node-module
resolve-npm-git # prints the resolved pkg json to stdout

To replace the package.json with the resolved one use the -r flag

resolve-npm-git --replace # replaces ./package.json with the resolved one

And to use another file than ./package.json use the -f flag

resolve-npm-git --file ./some-modules/package.json

License

MIT

FAQs

Package last updated on 07 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts