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

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
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 just this package:
clone('jsl@1.1.0', 'http://registry.npmjs.org/', 'http://my.reg/', function(err) {

})

// grab this package + its deps:
clone.all('jsl@1.1.0', 'http://registry.npmjs.org/', 'http://my.reg/', function(err) {

})

API

clone(package, sourceRegistry, targetRegistry, credentials, ready)
clone.all(package, sourceRegistry, targetRegistry, credentials, 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.

credentials is optional, and used in the publish step for the target registry only. If given, it may either be a string (passed on verbatim during basic auth) or a {username, password} object.

License

MIT

Keywords

FAQs

Package last updated on 20 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