# @pnpm/npm-conf

> Get the npm config

Latest version **3.0.3** (published 2026-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pnpm/npm-conf
pnpm add @pnpm/npm-conf
yarn add @pnpm/npm-conf
bun add @pnpm/npm-conf
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2026-06-11 |
| First published | 2022-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 3 |
| Unpacked size | 30.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pnpmuser, zkochan |
| Keywords | conf, config, global, npm, path, prefix, rc |

## Links

- npm: https://www.npmjs.com/package/@pnpm/npm-conf
- Repository: pnpm/npm-conf
- npm.io page: https://npm.io/package/@pnpm/npm-conf

## Dependencies (3)

- [config-chain](https://npm.io/package/config-chain.md) ^1.1.11
- [@pnpm/network.ca-file](https://npm.io/package/@pnpm/network.ca-file.md) ^1.0.1
- [@pnpm/config.env-replace](https://npm.io/package/@pnpm/config.env-replace.md) ^1.1.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 3.0.3 (latest) — 2026-06-11
- 3.0.2 — 2025-12-30
- 3.0.1 — 2025-11-21
- 3.0.0 — 2024-12-31
- 2.3.1 — 2024-08-09
- 2.3.0 — 2024-08-03
- 2.2.2 — 2023-06-14
- 2.2.1 — 2023-06-14
- 2.2.0 — 2023-05-02
- 2.1.1 — 2023-04-04
- 2.1.0 — 2022-12-23
- 2.0.4 — 2022-11-11
- 2.0.3 — 2022-11-11
- 2.0.2 — 2022-10-21
- 2.0.1 — 2022-10-13
- … 7 more at https://npm.io/package/@pnpm/npm-conf/versions

## README

# @pnpm/npm-conf [![Build Status](https://travis-ci.com/pnpm/npm-conf.svg?branch=master)](https://travis-ci.com/pnpm/npm-conf)

> Get the npm config


## Install

```
$ pnpm add @pnpm/npm-conf
```


## Usage

```js
const npmConf = require('@pnpm/npm-conf');

const conf = npmConf();

conf.get('prefix')
//=> //=> /Users/unicorn/.npm-packages

conf.get('registry')
//=> https://registry.npmjs.org/
```

To get a list of all available `npm` config options:

```bash
$ npm config list --long
```


## API

### npmConf()

Returns the `npm` config.

### npmConf.defaults

Returns the default `npm` config.


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

---
_Source: https://npm.io/package/@pnpm/npm-conf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
