You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
293 B
11 lines
293 B
8 years ago
|
"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}`);
|
||
|
}
|
||
|
});
|