# processconfig

> Wrapper for process.config

Latest version **0.0.2** (published 2015-04-21) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-04-21 |
| First published | 2015-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Simone Lusenti |
| Maintainers | plasticpanda |

## Links

- npm: https://www.npmjs.com/package/processconfig
- Repository: https://github.com/plasticpanda/processconfig
- Issues: https://github.com/plasticpanda/processconfig/issues
- npm.io page: https://npm.io/package/processconfig

## Recent versions

- 0.0.2 (latest) — 2015-04-21
- 0.0.1 — 2015-04-21

## README

# processconfig
Wrapper for process.config which throws if a property is not set or empty.

[![Build Status](https://travis-ci.org/plasticpanda/processconfig.svg?branch=master)](https://travis-ci.org/plasticpanda/processconfig) 
[![Dependencies](https://david-dm.org/plasticpanda/processconfig.svg)](https://david-dm.org/plasticpanda/processconfig) 
[![devDependency Status](https://david-dm.org/plasticpanda/processconfig/dev-status.svg)](https://david-dm.org/plasticpanda/processconfig#info=devDependencies)  
[![NPM](https://nodei.co/npm/processconfig.png)](https://nodei.co/npm/processconfig/)


## Usage

```node
var config = require('processconfig');

config.read({
  // e.g.: read config from a json / yaml file or from process.env...
  foo: 'bar1',
  home: '/home/pino',
  illegal: '',
});

console.log(config('foo')); // > bar1
console.log(config('foooo')); // > throws because foooo is not set
console.log(config('illegal')); // > throws because illegal is empty
```


## Tests

Run ```npm test```.


## License

See ```LICENSE``` file.

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