@raymondcamden Nodemon is your friend ;)
https://www.npmjs.com/package/nodemon
And if you want to roll your own basic process manager, see what I’m doing here in Kitten:
https://codeberg.org/kitten/app/src/branch/main/build-templates/kitten-process-manager.js