npm install kou64yama/node-config-store
var ConfigStore = require('config-store');
var config = new ConfigStore();
config.set({
server: {
host: 'localhost',
port: 8080
}
});
console.log(config.get('server.host')); // => localhost
console.log(config.get('server.port')); // => 8080
console.log(config.get('server')); // => { server: 'localhost', port: 8080 }
- Fork it ( https://github.com/kou64yama/node-config-store/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request