npm.io
1.0.0 • Published 10 years agoCLI

registry-info

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0

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