# npm-package-config

> Retrieves and combines package's configuration like running from 'npm run'

Latest version **0.7.0** (published 2017-11-02) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install npm-package-config
pnpm add npm-package-config
yarn add npm-package-config
bun add npm-package-config
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2017-11-02 |
| First published | 2015-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Claude Petit |
| Maintainers | doodadjs |
| Keywords | npm, config |

## Links

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

## Dependencies (1)

- [compare-versions](https://npm.io/package/compare-versions.md) ^3.1.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

- 0.7.0 (latest) — 2017-11-02
- 0.6.0 — 2017-10-07
- 0.5.0 — 2017-06-16
- 0.4.0 — 2017-05-31
- 0.3.2 — 2017-05-28
- 0.3.1 — 2017-05-28
- 0.3.0 — 2017-05-28
- 0.2.0 — 2017-05-22
- 0.1.10 — 2017-05-21
- 0.1.9 — 2017-01-05
- 0.1.7 — 2016-12-04
- 0.1.6 — 2016-03-22
- 0.1.5 — 2016-01-28
- 0.1.3 — 2015-12-28
- 0.1.2 — 2015-12-04
- … 2 more at https://npm.io/package/npm-package-config/versions

## README

This is a little package to get the configuration of your package that you can override using "npm config set ...".<br/>
<br/>
Normally, this information is only accessible when your script is invoked by "npm run".<br/>
<br/>
NPM is not very friendly with this wonderful feature. There is no API, and no '--json' option to 'npm config list'.<br/>
<br/>
Usage:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;const npc = require('npm-package-config');<br/>
&nbsp;&nbsp;&nbsp;&nbsp;const result = npc.list([package_name], [options]);<br/>
<br/>
New since version 0.5.0:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;const result = npc.listSync([package_name], [options]);<br/>
&nbsp;&nbsp;&nbsp;&nbsp;const result = npc.listAsync([package_name], [options]);<br/>
</br>
Where:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"package_name" : (optional) Name of the package<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"options" : (optional) An object which provide options by key/value pairs.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"result" : The result of the function.<br/>
<br/>
Options:</br>
&nbsp;&nbsp;&nbsp;&nbsp;"async" : ("npc.list" only) When 'true', the function will return a Promise. When 'false', the function will return the result. Default is 'false'.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"Promise" : Provides the Promise constructor. Default is 'global.Promise'.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;"module" : Provides the Node.js module object used to resolve files. Default is the parent module of 'npm-package-config'.<br/>

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