config-helper

1.2.0 • Public • Published

config-helper

Node.js Version NPM version build status Dependency Status Coverage Status

Provide a simple config loader based on NODE_ENV

installation

npm install config-helper

Default usage

config/
    developement.js
    test.js
    production.js
const config = require('config-helper')({
    path: 'config/'
});

Multi usage

path/config/
    developement/
        core.js
        database.json
        ...
    test/
    production/
const config = require('config-helper')({
    path :'path/config',
    multi :true
});

Readme

Keywords

Package Sidebar

Install

npm i config-helper

Weekly Downloads

25

Version

1.2.0

License

MIT

Last publish

Collaborators

  • menems