Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var scopeObject = {};
- var moduleIds = FILE.list(directoryPath);
- for (var i = 0; i < moduleIds.length; i++) {
- var id = moduleIds[i],
- cameCase = ...;
- scopeObject[camelCase] = require(id).camelCase;
- }
- with (scopeObject) {
- // rest of your code
- }
Add Comment
Please, Sign In to add comment