rewrite-lockfile

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

Usage no npm install needed!

<script type="module">
  import rewriteLockfile from 'https://cdn.skypack.dev/rewrite-lockfile';
</script>

README

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