Socket
Book a DemoInstallSign in
Socket

registry-migrate

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

registry-migrate

A simple utility to migrate a set of packages or a given stream of packages from one registry to another

latest
Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
2
-80%
Maintainers
3
Weekly downloads
 
Created
Source

registry-migrate

build
status

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

Keywords

registry

FAQs

Package last updated on 07 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts