# npm-conf

> Get the npm config

Latest version **1.1.3** (published 2017-10-31) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2017-10-31 |
| First published | 2017-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 37 |
| Author | Kevin Martensson |
| Maintainers | kevva |
| Keywords | conf, config, global, npm, path, prefix, rc |

## Links

- npm: https://www.npmjs.com/package/npm-conf
- Repository: https://github.com/kevva/npm-conf
- Homepage: https://github.com/kevva/npm-conf#readme
- Issues: https://github.com/kevva/npm-conf/issues
- npm.io page: https://npm.io/package/npm-conf

## Dependencies (2)

- [pify](https://npm.io/package/pify.md) ^3.0.0
- [config-chain](https://npm.io/package/config-chain.md) ^1.1.11

## 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

- 1.1.3 (latest) — 2017-10-31
- 1.1.2 — 2017-07-24
- 1.1.1 — 2017-07-24
- 1.1.0 — 2017-07-17
- 1.0.0 — 2017-05-23

## README

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

> Get the npm config


## Install

```
$ npm install npm-conf
```


## Usage

```js
const npmConf = require('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/npm-conf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
