ngn-idk-core
Version:
18 lines (14 loc) • 413 B
JavaScript
global.NGN = {};
global.UTIL = {};
module.exports = function(ngn,util){
var core = {},
p = require('path'),
path = p.join(__dirname,'core');
NGN = ngn;
UTIL = util;
// Return all the first level classes in the directory.
require('fs').readdirSync(path).forEach(function(file){
core[p.basename(file,'.js')] = require(p.join(path,file));
});
return {core:core};
};