troygoode / node-require-directory

Recursively iterates over specified directory, requiring each file, and returning a nested hash structure containing those libraries.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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