How to install Nodemon to your node apps

How to install Nodemon to your node apps

What is nodemon?

Nodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development.

nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.

nodemon does not require any additional changes to your code or method of development. nodemon is a replacement wrapper for node. To use nodemon, replace the word node on the command line when executing your script.

Nodemon Features

  • Automatic restarting of application.

  • Detects default file extension to monitor.

  • Default support for node & CoffeeScript, but easy to run any executable (such as python, make, etc).

  • Ignoring specific files or directories.

  • Works with server applications

  • Requirable in node apps.

Installation

nodemon can be installed as a development dependency: Go-to file project folder directory on command line/terminal and run

npm install --save-dev nodemon

Usage

nodemon wraps your application, so you can pass all the arguments you would normally pass to your app:

nodemon [your node app]

I hope this article helps you.