1.0.0 • Published 8 years ago

registry-info v1.0.0

Weekly downloads
3,085
License
MIT
Repository
github
Last release
8 years ago

registry-info

Get registry info (url, auth token, headers) from an arg

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install registry-info --save

Usage

import registryInfo from 'registry-info';

// returns an object with {registryUrl, authToken, authorization}
//  .authorization can be used in http headers
console.log(registryInfo());

// optionally a scope can be set
console.log(registryInfo(scope));

Tests

npm install
npm test

Dependencies

Dev Dependencies

License

MIT

Generated by package-json-to-readme