@spryker-lerna/map-to-registry

5.1.0 • Public • Published

@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.

Install lerna for access to the lerna CLI.

Package Sidebar

Install

npm i @spryker-lerna/map-to-registry

Weekly Downloads

1

Version

5.1.0

License

MIT

Unpacked Size

7.84 kB

Total Files

5

Last publish

Collaborators

  • spryker-bot