node-require-directory
node-require-directory copied to clipboard
include/exclude additional argument - basename of path
proposal is to pass path and basename as such:
check = function(filepath, filename) {
...
}
// where filename = require("path").basename(filepath)
module.exports = requireDirectory module, exclude: check