Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

best way to store db config in node js

var env = process.env.NODE_ENV || 'development';
var config = require('./config')[env];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #db #config #node #js
ADD COMMENT
Topic
Name
1+9 =