rewrite-lockfile

Rewrite npm's lockfile/shrinkwrap to ensure secure registry urls are being used


Keywords
package-lock, shrinkwrap, lockfile, rewrite, cli
License
MIT
Install
npm install rewrite-lockfile@1.0.1

Documentation

rewrite-lockfile

build status install size npm package version github license js semistandard style

Rewrite npm's lockfile/shrinkwrap to ensure secure registry urls are being used

Run

$ npx rewrite-lockfile <path>

Usage

In order to automatically rewrite lockfile on every installation, install it as dev dependency:

$ npm install --save-dev rewrite-lockfile

and add following script to your package.json:

{
  "scripts": {
    "postshrinkwrap": "rewrite-lockfile package-lock.json"
  }
}