apkg

1.0.0 • Public • Published

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


Readme

Keywords

Package Sidebar

Install

npm i apkg

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • song940