Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.
/ ghpm Public archive

🌵 [UNMAINTAINED] An npm mirror/proxy directly to modules on GitHub

License

Notifications You must be signed in to change notification settings

andrew/ghpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ghpm

An npm mirror/proxy directly to modules on GitHub, falling back to npm where required data is missing from npm (repo link) or GitHub (version tags)

Setup

git clone git@github.com:andrew/ghpm.git
cd ghpm
npm install

Create a Personal Access Token on GitHub: https://github.com/settings/tokens/new

ACCESS_TOKEN=123456789 node index.js

Use your custom registry with npm:

npm install some_module --registry http://localhost:8000

TODO

  • cache responses from GitHub
  • Use a better cache than an object in memory
  • fix the nasty shasum hack
  • latest response needs to have all versions, not just latest

Copyright

Copyright (c) 2013 Andrew Nesbitt. See LICENSE for details.

About

🌵 [UNMAINTAINED] An npm mirror/proxy directly to modules on GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published