parent
c4cc3a6eb3
commit
cbc33b4ad4
@ -0,0 +1,10 @@ |
||||
"use strict"; |
||||
|
||||
// Code taken from http://stackoverflow.com/a/17204293
|
||||
require("fs").readdirSync(__dirname).forEach((file) => { |
||||
if (file.match(/\.js$/) !== null && file !== "index.js") { |
||||
const name = file.replace(".js", ""); |
||||
|
||||
exports[name] = require(`./${file}`); |
||||
} |
||||
}); |
Loading…
Reference in new issue