node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org ยป


setting Build Status

A simple Node.js settings library.

Getting Started

Install setting

npm install setting

Create file demo.js

var setting = require('setting')

setting('mysql', 'host', 'localhost')
setting('mysql', 'port', 3306)
setting('mysql', 'user', 'root')
setting('mysql', 'password', 'secret')


Run demo.js

[silas@host ~]$ MYSQL_PORT=3307 node demo.js --mysql-user=test
{ host: 'localhost',
  port: 3307,
  user: 'test',
  password: 'secret' }


This work is licensed under the MIT License (see the LICENSE file).