This blog post describes a trick for running a snippet of JavaScript code with Node.js while working on it.
As an example, let’s assume we want to experiment with the standard Node.js function util.format(). We create the file mysnippet.js, with the following content:
How can we run mysnippet.js while we are working on it?
We first install the npm package nodemon:
Then we can use it to continuously run mysnippet.js:
Read More