# cfg-manager

> Managing config and environment variables

Latest version **1.1.1** (published 2015-08-14) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install cfg-manager
pnpm add cfg-manager
yarn add cfg-manager
bun add cfg-manager
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-08-14 |
| First published | 2015-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.12 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ricky Chien |
| Maintainers | rickychien |

## Links

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

## Dependencies (1)

- [object-assign](https://npm.io/package/object-assign.md) ^3.0.0

## Recent versions

- 1.1.1 (latest) — 2015-08-14
- 1.1.0 — 2015-08-14
- 1.0.3 — 2015-08-07
- 1.0.2 — 2015-08-05
- 1.0.1 — 2015-08-05
- 1.0.0 — 2015-07-30
- 0.0.2 — 2015-07-21
- 0.0.1 — 2015-07-20

## README

# Cfg-manager

Parsing and merging ENVs and user provided ENV paramenters.

## Installation

```
npm install cfg-manager
```

## Usage

You probably do this so often

```
$ execMyProgram DEBUG=1 FILE_PATH=path/to/somewhere
```

The cfg-manager can treat user input parameters as ENVs and merge it with a given default configuration. Easily access config from modules by parsing pre-stored environment variable.

### Example



### APIs



## Development

### Build

This project built with ES6, so you should transpile it to ES5 through babel after modifying any codebase.

```
$ npm install // Trigger babel transpiler to convert source from ES6 to ES5.
```

### Running test

We use [mocha](http://mochajs.org/) for testing and it is able to transpile ES6 to ES5 automatically.

```
$ npm test
```

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