Skip to content

Instantly share code, notes, and snippets.

@fernandocanizo
Created May 23, 2015 03:44
Show Gist options
  • Save fernandocanizo/349f1bf8956b39929029 to your computer and use it in GitHub Desktop.
Save fernandocanizo/349f1bf8956b39929029 to your computer and use it in GitHub Desktop.
Node.js tools and libraries
# Node.js tools and libraries
## Tools
- Monitor for any changes in your source code and automatically restart your server
In development:
```
sudo npm install -g nodemon
```
or
```
sudo npm install -g supervisor
```
In production:
- To run node indefinitely and restart it in case of crash
```
sudo npm install -g forever
```
- Enable debugging with Node Inspector
```
sudo npm install -g node-inspector
```
and use it with:
node-debug app.js
- To lock down versions of dependencies for a project, use it when you're about to deploy
sudo npm install -g shrinkwrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment