registry-info
v1.0.0
Published
Get registry info (url, auth token, headers) from an arg
Downloads
7,988
Readme
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
- registry-auth-token: Get the auth token set for an npm registry (if any)
- registry-url: Get the set npm registry URL
Dev Dependencies
- babel-cli: Babel command line.
- babel-core: Babel compiler core.
- babel-preset-es2015: Babel preset for all es2015 plugins.
- package-json-to-readme: Generate a README.md from package.json contents
- xo: JavaScript happiness style linter ❤️
License
MIT
Generated by package-json-to-readme