0.1.1 • Published 9 years ago

confm v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

#ConfM

simple Node.js server-side config solution

Feature

  • read json format file as config
  • watch config file changes, no need to restart your server

Installation

npm install confm

Usage

var config = require('confM').create('conf/global.json);
config.get('a'); // 1
config.get('b', 'c'); // 2
config.getAll(); // {"a":1,"b":{"c":2}}

global.json

{
	"a": 1,
	"b": {
		"c": 2
	}
}

Run Tests

git clone https://github.com/MaxLee1994/confM.git confM
cd confM
mocha tests/confM-integ.js
0.1.1

9 years ago

0.1.0

9 years ago