node-childseat
Childseat allows you to interact with child processes using functions and callbacks. Childseat's fork() function produces the same ChildProcess produced by node's child_process.fork() function, except that you can attach function calls to it.
Childseat detects whether it has been required in a parent or child process and behaves accordingly.
Example:
child.js:
var Childseat = ; var { // Do something console; var result = arg1 + arg2; ;} Childseat;
parent.js:
var Childseat = ; var child = Childseat; // Child processes take some time to spin up, as per node's child_process documentation;