Faster NodeJS development with nodemon

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.

Find a typo?


More Things Written

» March 1, 2014
» March 4, 2014