# @erquhart/lerna-map-to-registry

> Produce registry uri and auth of package name from npm config

Latest version **3.14.0** (published 2019-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @erquhart/lerna-map-to-registry
pnpm add @erquhart/lerna-map-to-registry
yarn add @erquhart/lerna-map-to-registry
bun add @erquhart/lerna-map-to-registry
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.14.0 |
| Published | 2019-03-21 |
| First published | 2019-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.9.0 |
| Dependencies | 2 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36029 |
| Author | Daniel Stockman |
| Maintainers | erquhart |
| Keywords | lerna, npm, config, registry |

## Links

- npm: https://www.npmjs.com/package/@erquhart/lerna-map-to-registry
- Repository: https://github.com/lerna/lerna
- Homepage: https://github.com/lerna/lerna/tree/master/utils/map-to-registry#readme
- Issues: https://github.com/lerna/lerna/issues
- npm.io page: https://npm.io/package/@erquhart/lerna-map-to-registry

## Dependencies (2)

- [npmlog](https://npm.io/package/npmlog.md) ^4.1.2
- [npm-package-arg](https://npm.io/package/npm-package-arg.md) ^6.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 3.14.0 (latest) — 2019-03-21

## README

# `@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](https://github.com/npm/npm/blob/f644018/lib/utils/map-to-registry.js). Caveat emptor.

```js
"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](https://www.npmjs.com/package/npm-registry-client) instance method parameters.

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

---
_Source: https://npm.io/package/@erquhart/lerna-map-to-registry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
