0.1.7 • Published 10 years ago

multijson-config v0.1.7

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

multijson-config

A smart way to merge multile JSON config files/objects into a single config object

Author: superisaac.ke@gmail.com

Install

npm install multijson-config

Examples

var multijson = require('multijson-config')
var config = multijson.parseJSONFiles('config.default.json', 'config1.json', 'config2.json')

How it works

Normally it parses a chain of JSON config files. But the dot separated key can be interpreted as nested objects

{
  "a.b.c.d": 100
}	

is equal to the standard JSON object

{
   "a": {"b": {"c": {"d": 100}}}
}

By adding the above role, JSON configs can replace the prior default values.

0.1.7

10 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago