Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reggi/node-module-bin
https://github.com/reggi/node-module-bin
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/reggi/node-module-bin
- Owner: reggi
- Created: 2015-08-08T18:02:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T04:18:03.000Z (over 9 years ago)
- Last Synced: 2024-10-05T10:48:00.090Z (about 2 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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). |