1.0.3 • Published 6 years ago

@evanion/config-extended v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Greenkeeper badge CircleCI

config-extended

An easy to use package to handle configuration in your Node.js application. This package extends the standard config package to automatically resolve environment variables.

Example

# DB_INFO=mongo://localhost:27017/example npm start

config/default.json

{
  "database": "DB_INFO"
}

index.js

import Config from '@evanion/config-extended';

const dbHost = Config.get('database'); // > mongo://localhost:27017/example
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago