I know there are multiple ways of running a script in a NodeJS script. Given that I run start.js, which runs main.js. What I'm looking for is:
- both scripts run simultaneously
- console.log and readline input will work in the script that is loaded by the other script (main.js can do console.log and gets console input too)
- main.js should continue to run when start.js terminates
Based on the last key point, wouldn't I be able to restart a script without an extra package for node, just by launching the same script and then returning?
via Flybel
No comments:
Post a Comment