Last week Node.js announced the release of version 19.
While it is not an LTS release, it does come with a really cool feature:
--watch flag, you can have Node.js automatically restart the process
if the files being watched change. Running Node.js in watch mode is as Running
node --watch index.js. If you are using more than one file in your project,
you can also use the
--watch-path flag can be specified multiple times to watch different directories.
One important thing to note is,
--watch works on all platforms while
works on macOS and Windows at this time. Linux users will get an
error. While this feature does overshadow projects like nodemon,
I am sure that nodemon will continue to distinguish itself with features beyond
what Node.js offers. This release of Node.js includes other items, like
a stable WebCrypto API and an updated V8 engine. Check out the
release blog post
for all the other details.