Skip to content

Instantly share code, notes, and snippets.

@reggi
Created August 31, 2012 16:22
Show Gist options
  • Save reggi/3555359 to your computer and use it in GitHub Desktop.
Save reggi/3555359 to your computer and use it in GitHub Desktop.
Include node variables from another config file.
module.exports = function(){
var limit = 250;
var Mongolian = require("mongolian");
var server = new Mongolian();
var db = server.db("shop");
var orders = db.collection("orders");
}
require("./config.js");
console.log(limit);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment