You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,9 +62,10 @@ installer('vim')
62
62
63
63
```js
64
64
sudo: boolean, // run as administrator
65
+
fork: string, // execute an additional module, of Node Js process `fork` IPC communication channel.
65
66
onerror: callable, // callback for `stderr.on('data')` event.
66
67
onprogress: callable, // callback for `stdout.on('data')` event.
67
-
//onmessage: callable, // callback for send `on('message')` event.
68
+
onmessage: callable, // callback for `on('message')` for `fork` event.
68
69
```
69
70
70
71
`Spawning` returns a promise whose result will be any output or any data return in the progress callback.
@@ -77,6 +78,9 @@ installer('vim')
77
78
*`output:`*String* - Output from stdout.
78
79
* Output can be altered and if returned will replace the otherwise resolved result.
79
80
81
+
*`fork:`*Object* - An additional [forked](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options) Node Js process handler, IPC communication channel.
82
+
* Execute additional processing base off of sub child process output, with module a script.
83
+
80
84
If there's an error running the child process, received data on stderr, or errors in progress callback, `spawning` rejects the returned promise.
0 commit comments