Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clone-packages

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clone-packages

clone packages from one repo to another

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

clone-packages

clone packages from one npm registry to another, optionally recursively.

# in bash:
$ npm install -g clone-packages
$ clone-packages beefy browserify@3.x.x --to http://my.registry.us/ --recursive
# ... time passes and your modules are cloned!

or programmatically:

var clone = require('clone-packages')

// grab this package:
clone('jsl@1.1.0', 'http://registry.npmjs.org/', 'http://my.reg/', done)

function done(err) {
  // once cloning is complete
}

API

clone(package, sourceRegistry, targetRegistry, options, ready)

package may be an object: {name: "packageName", version: "version"}, or a string: "package", "package@1.1.1".

sourceRegistry and targetRegistry must be strings representing URLs of the respective target registries.

options is an object allowing the following keys:

  • username used to authenticate in the publish step for the target registry.
  • password used with username to authenticate.
  • recursive clone all dependencies of package
  • internalize move all packages with external dependencies into the target registry.
  • log a function that will be called with every processed package.

ready is a callback that will be called once cloning has completed.

License

MIT

Keywords

FAQs

Package last updated on 27 Feb 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc