Skip to content

goodeggs/sinopia-npm

Repository files navigation

sinopia-npm

auth plugin for sinopia supporting an npm registry

build status npm version MIT license we're hiring

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.

About

auth plugin for sinopia supporting an npm registry

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •