sinopia-npm
auth plugin for sinopia supporting an npm registry
Usage
npm install sinopia
npm install sinopia-npm
Configuration
Add to your sinopia config.yaml
:
auth: npm: true
You can pass more options using an object:
auth: npm: registry: 'https://registry.npmjs.org' timeout: 1000 registryConfig: userAgent: 'super/cool' cacheConfig: max: 1000 maxAge: 900000 # 15 minutes
A full list of registryConfig
options can be found in the npm-registry-client README.
A full list of cacheConfig
options can be found in the lru-cache README.
Contributing
Please follow our Code of Conduct when contributing to this project.
$ git clone https://github.com/goodeggs/sinopia-npm && cd sinopia-npm
$ npm install
$ npm test
Module scaffold generated by generator-goodeggs-npm.