find-modules
Recursively find all modules in the node_modules
folder.
Example
var findModules = ; ; { // err contains error if any occurred modules;} // Example output:// <cwd>/node_modules/foo// <cwd>/node_modules/foo/node_modules/bar// <cwd>/node_modules/baz
Reference
findModules(dir, callback)
Recursively finds all module directories in the node_modules
folders. dir
is the root directory to start the search. callback
will be called when
completed. The first parameter passed to callback
is an error if any
occurred, otherwise null
. The second parameter is an array of paths of the
the module directories that were found.