Skip to content

Instantly share code, notes, and snippets.

@avoronkin
Created April 29, 2017 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avoronkin/16b2cb1c1011434c42862b3999263f5b to your computer and use it in GitHub Desktop.
Save avoronkin/16b2cb1c1011434c42862b3999263f5b to your computer and use it in GitHub Desktop.
app_require
global.app_require = function(name) {
return require(__dirname + '/' + name);
}
var fs = require('fs'),
config = app_require('config'),
common = app_require('utils/common');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment