Faster NodeJS development with nodemon
• ~100 words • 0.5 minute read
I'm developing an application using NodeJS and Express. I've only recently discovered nodemon:
https://github.com/remy/nodemon
Long story short, if you're developing a node application you should be using nodemon. I was still manually stopping and restarting my server like a dumb-ass.
You use it like this:
nodemon server.js
Now this script will watch every JavaScript file in your folder and reboot the file you pass as a parameter — in this case server.js — if any of them change.
Simple!
It's also worth reading the documentation to learn about some of the other features, including running non-node scripts.
This could've save me oodles of time.
--If you enjoyed reading this consider sponsoring my work on GitHub, subscribing to my newsletter or sharing it on Hacker News.
Published on Monday, March 3rd 2014. Read this post as plain-text.