registry-info

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

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

npm i registry-info

Metadata

  • MIT
  • Whatever
  • David Bjorklund
  • released 8/8/2016

Downloads

Maintainers