Created
August 31, 2012 16:22
-
-
Save reggi/3555359 to your computer and use it in GitHub Desktop.
Include node variables from another config file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(){ | |
var limit = 250; | |
var Mongolian = require("mongolian"); | |
var server = new Mongolian(); | |
var db = server.db("shop"); | |
var orders = db.collection("orders"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("./config.js"); | |
console.log(limit); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment