DEV Community

Discussion on: `node index.js` which variations do you use?

Collapse
 
thecodepixi profile image
Emmy | Pixi

This is a fun question. It really depends on what I'm working on. If I'm doing something in plain JS without an dependencies (rare) it's easy enough to just node index.js. When I'm working on an Express server I add a script to my package.json called dev that starts up nodemon, so I can just yarn dev and leave the server up while I work on it.