3.5.0 • Published 5 years ago

@megasaur/map-to-registry v3.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@lerna/map-to-registry

Produce registry uri and auth of package name from npm config

Usage

This is an extraction of an internal npm utility. Caveat emptor.

'use strict';

const mapToRegistry = require('@lerna/map-to-registry');
const npmConf = require('@lerna/npm-conf');

const config = npmConf();
const { uri, auth } = mapToRegistry("my-package", config);

uri and auth are suitable for arguments to npm-registry-client instance method parameters.

3.5.0

5 years ago