0.1.4 • Published 8 years ago

npm-shrinkwrap-check v0.1.4

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

npm-shrinkwrap-check

Checks that package.json and npm-shrinkwrap.json files are always in sync so you don't commit out-of-sync dependencies in your code.

installation

Install it globally running

$ npm install -g npm-shrinkwrap-check

usage

In a folder that contains a package.json run the following command:

$ npm-shrinkwrap-check

This will perform the following checks:

  • Both package.json and npm-shrinkwrap.json exist.
  • There are no dependencies in package.json that are not contained in npm-shrinkwrap.json

options

Options:
  -3, --v3       Perform check taking npm3 flat structure into account.
  -d, --dev      Check devDependencies.
  -h, --help     Show this help message.
  -v, --verbose  Run in verbose mode
  -V, --version  Outputs version

add as git hook

It is a good practice that you add npm-shrinkwrap-check as a git hook.

To add a pre-push hook create a .git/hooks/pre-push in your repo with the following:

#!/bin/sh

npm-shrinkwrap-check

This will prevent you from pushing out-of-sync package.json and npm-shrinkwrap.json files to your repo.

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago