Skip to content

Instantly share code, notes, and snippets.

Created June 28, 2017 15:37
What would you like to do?
Gestión de la configuración
const config = require('./config');
const config = require('./config.json');
Object.assign(module.exports, config.defaults, config[process.env.NODE_ENV])
"defaults": {
"hello": "world",
"foo": "bar"
"local": {
"foo": "bar local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment