Skip to content

How to store the configuration to file

Marco Pracucci edited this page Jun 11, 2014 · 1 revision

This following is a simple yet working way to store the config to file.

conf.js

module.exports = {
  "key": "value"
};

app.js

var conf = new reconfig(require('./conf.js'));
Clone this wiki locally