Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reggi/node-module-bin


https://github.com/reggi/node-module-bin

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        


## moduleBin(filePath, args, [functionMethod], [type], [toLog], [toThrow], [toStringify])
Proxy the execution of an entire node module.

**Kind**: global function

| Param | Type | Description |
| --- | --- | --- |
| filePath | String | Path to main javascript file. |
| args | Array | Array of arguments to apply to the function. |
| [functionMethod] | String | String of specific function method to execute |
| [type] | String | Type of function to run (promise||callback) |
| [toLog] | Boolean | Option to log the output (defaults true). |
| [toThrow] | Boolean | Option to throw error (defaults true). |
| [toStringify] | Boolean | Option to JSON.stringify output (defaults true). |