include/exclude additional argument - basename of path
arieljake opened this issue · comments
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