Restart your Node.js app automatically when files change
open sourceMITfree
nodemon wraps a Node.js application and restarts it whenever a source file changes, for development: run nodemon server.js in place of node server.js. It picks the file extensions to watch, can watch or ignore particular directories, passes your app's arguments through, and can run executables other than node, such as Python, Ruby or make. It's configured on the command line, in nodemon.json or in package.json, and can also be required from a Node script. Remy Sharp made it, and it's funded through Open Collective.
Problems it solves
- restart my Node.js server automatically every time I save a file
- stop manually restarting node while developing an Express app
- rerun a Python or Ruby script whenever a file in the folder changes
Features
- restarts the process when watched files change
- detects which file extensions to watch
- runs node by default and any other executable on request
- watch and ignore lists for files and directories
- configuration in nodemon.json or package.json
- scriptable through require from Node
Alternatives
The same job
These do what nodemon does.