Running code snippets via Node.js and nodemon — 2ality.com

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



This site uses cookies to give the best and personalised experience. By continuing to browse the site you are agreeing to our use of cookies. Find out more here.

Sign Up or Login

Invalid username or password
Not yet on CircleMe? Join now
Please input a email
Please input a valid email
Max 50 characters
Email already in use
{{email_serverError}}
Please input a username
Min 3 characters
Max 20 characters
Please use only A-Z, 0-9 and "_"
Username is taken
Please input a password
Min 6 characters
Max 20 characters
By clicking the icons, you agree to CircleMe terms & conditions
Already have an account? Login Now