1.1.1 • Published 7 years ago
ding-load-dir v1.1.1
ding-load-dir
loading files' module from dir into an object
loadDir(options)
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 |