registry-migrate

2.0.2 • Public • Published

registry-migrate

buildstatus

Migrate a set of packages from a source registry into a target registry.

Install

npm install registry-migrate --save

Example

var migrate = require('registry-migration');
 
migrate({
  source: source,
  destination: destination,
  // Set of packages to migrate, could be strings or full package documents
  packages: ['hyperquest', 'changes-stream'] 
}, function (err) {
  if (err) return console.error(err);
  console.log('Finished!');
});
 
//
// Also returns a duplex stream if we want to pipe in our own set of packages
//
 
packageStream(opts)
  .pipe(migrate({
    source: source,
    destination: destination
  }))
  .on('error', onError)
  .on('finish', function () {
    console.log('Finished!'); 
  });
  

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    0
    • latest

Version History

Package Sidebar

Install

npm i registry-migrate

Weekly Downloads

0

Version

2.0.2

License

MIT

Last publish

Collaborators

  • bmeck
  • indexzero
  • jcrugzz