1.0.0 • Published 7 years ago

apkg v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

upkg

Another npm server and/or client implementation for nodejs

Example

const npm = require('upkg');

const registry = npm({
  registry: 'https://registry.npmjs.com'
});

const storage = new npm.Storage({
  dir: '/tmp'
});

const proxy = new npm.Proxy({
  storage : storage,
  registry: registry
});

const server = new npm.Server({
  registry: proxy
});

server.listen(9090, function(err){
  console.log('npm server is running at %s', this.address().port);
});

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT