Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 876 Bytes

github-semver.md

File metadata and controls

29 lines (20 loc) · 876 Bytes

Semver support for GitHub packages

This change adds support for public & private semver-friendly github tarballs.

If you've ever tried using private github repositories instead of a private npm registry, you've probably failed. This fork of npm adds semver support for exactly that.

For example the following component-style dependency definitions allow you to specify the username/repository, as well as the version - this is true for both public and private repos.

"dependencies": {
  "visionmedia/debug": "~0.7.0",
  "visionmedia/private": "1.x"
}

For authentiation you need to create an access token:

Then run:

$ npm config set github-token <token>