loading files' module from dir into an object
an simply way the load files in dir
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
options | Object |
config | |
[options.patcher] | Object |
{} |
the obj need to load files module to |
[options.path] | String |
'./' |
it will join with dirName is relative path |
[options.dirname] | String |
process.env.PWD or __dirname |
root of dirPath |
[options.args] | Mixed |
[] |
args would pass to those files module |