1.0.7 • Published 7 years ago

multifile-config v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

multifile-config

Build Status codecov Code Climate dependencies Status devDependencies Status

Installation

$ npm install multifile-config --save

What does it do

Reads multiple javascript files from specified config directory and merges their exports into one object.

You can require all your configuration with one-liner:

import loadConfig from 'multifile-config';

var config = loadConfig(path.join(__dirname, 'config'));

While having your configuration split to multiple files for different parts of you application (http, templating engine, etc...) to avoid one long unreadable 900-lines long configuration file:

src/
    config/
       http.js
        json.js
        templating.js
        redis.js
        mysql.js
    controllers/
        ...
    views/
        ...
    app.js

It's simple, small and has zero dependencies.

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago