var requireDirectory = require("require-directory"); module.exports = requireDirectory(module);
info at phpclasses dot org