@0x-lerna-fork/map-to-registry 中文文档教程
@0x-lerna-fork/map-to-registry
配置生成注册表 uri 和包名称的授权
Usage
从npm js">实用程序。 买者自负。
"use strict";
const mapToRegistry = require("@0x-lerna-fork/map-to-registry");
const npmConf = require("@0x-lerna-fork/npm-conf");
const config = npmConf();
const { uri, auth } = mapToRegistry("my-package", config);
uri
和 auth
适用于 npm-registry- 的参数客户端实例方法参数。
安装 lerna 以访问 lerna
CLI。
@0x-lerna-fork/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("@0x-lerna-fork/map-to-registry");
const npmConf = require("@0x-lerna-fork/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.