I have written a post on using the built in node.js child_process module which is one way to go about launching additional processes in a node.js environment. However I have not ever look into, and tested out something that is an improvement over that. Today I have come across something called execa that does the same thing as child_process, but adds some more features, such as making each method a promise.
So the method that will be used the most typically is what is given in the main method that is exported when requiring execa into a project. This method works just like spawn in the native child_process node.js module, so it is faster, and safer than another method in this project that works like exec.
So I made a simple test script that just does something with arguments.
And my basic.js file that I will be parent process that I will start with node looks like this.