patch-package-json

Patch the tarball address in a package.json from the registry

patch package json

Simple little module to rewrite the dist.tarball key in a package.json registry entry. So, you know, you can mirror it :)

npm i patch-package-json

Exports two methods: url and json

 
var patch = require('patch');
 
var json = { /.package.json data from registry.};
 
var data = patch.json(json, 'myregistry.foobar.com');