1.1.1 • Published 9 years ago

cfg-manager v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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 for testing and it is able to transpile ES6 to ES5 automatically.

$ npm test
1.1.1

9 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago