# npmconf

> The config module for npm circa npm@1 and npm@2

Latest version **2.1.3** (published 2018-05-11) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install npmconf
pnpm add npmconf
yarn add npmconf
bun add npmconf
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2018-05-11 |
| First published | 2012-08-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 51.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 74 |
| Author | Isaac Z. Schlueter |
| Maintainers | iarna, isaacs, othiym23 |
| Keywords | npm, config, config-chain, conf, ini |

## Links

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

## Dependencies (10)

- [ini](https://npm.io/package/ini.md) ^1.2.0
- [nopt](https://npm.io/package/nopt.md) ~3.0.1
- [once](https://npm.io/package/once.md) ~1.3.0
- [osenv](https://npm.io/package/osenv.md) ^0.1.0
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0
- [semver](https://npm.io/package/semver.md) 2 || 3 || 4
- [inherits](https://npm.io/package/inherits.md) ~2.0.0
- [uid-number](https://npm.io/package/uid-number.md) 0.0.5
- [safe-buffer](https://npm.io/package/safe-buffer.md) ^5.1.1
- [config-chain](https://npm.io/package/config-chain.md) ~1.1.8

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

- 2.1.3 (latest) — 2018-05-11
- 2.1.2 — 2015-05-19
- 1.1.9 — 2014-10-07
- 2.1.1 — 2014-10-07
- 2.1.0 — 2014-09-18
- 2.0.9 — 2014-09-11
- 1.1.8 — 2014-09-05
- 1.1.7 — 2014-09-05
- 1.1.6 — 2014-09-04
- 2.0.8 — 2014-09-02
- 2.0.7 — 2014-08-30
- 2.0.6 — 2014-08-25
- 1.1.5 — 2014-07-31
- 2.0.5 — 2014-07-31
- 2.0.4 — 2014-07-25
- … 57 more at https://npm.io/package/npmconf/versions

## README

# npmconf

## THIS PACKAGE IS DEPRECATED

**This package's functionality has been reintegrated directly into npm. There
have been many changes made to npm's configuration since the last version of
this package was published. It should not be considered a source of truth for
npm configuration any longer, and npm itself is the best tool to use to manage
its configuration.

# **_Do not use this package._**

If you are writing a new Node.js program, and want
configuration functionality similar to what npm has, but for your
own thing, then I'd recommend using [rc](https://github.com/dominictarr/rc),
which is probably what you want.

## USAGE

```javascript
var npmconf = require('npmconf')

// pass in the cli options that you read from the cli
// or whatever top-level configs you want npm to use for now.
npmconf.load({some:'configs'}, function (er, conf) {
  // do stuff with conf
  conf.get('some', 'cli') // 'configs'
  conf.get('username') // 'joebobwhatevers'
  conf.set('foo', 'bar', 'user')
  conf.save('user', function (er) {
    // foo = bar is now saved to ~/.npmrc or wherever
  })
})
```

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