@evanion/config-extended

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @evanion/config-extended

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

188 kB

Total Files

9

Last publish

Collaborators

  • evanion86