Socket
Socket
Sign inDemoInstall

nodemon

Package Overview
Dependencies
Maintainers
1
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemon

Simple monitor script for use during development of a node.js app.


Version published
Weekly downloads
1.2M
decreased by-80.19%
Maintainers
1
Weekly downloads
 
Created

What is nodemon?

Nodemon is a utility that monitors for any changes in your source code and automatically restarts your server. It is mainly used during the development of Node.js applications to increase productivity by reducing the need to manually restart the server after making code changes.

What are nodemon's main functionalities?

Automatic Restart

Automatically restarts the node application when file changes in the directory are detected. To use nodemon, replace the word 'node' on the command line when executing your script.

nodemon app.js

Custom Watch List

Tells nodemon to only restart if there are changes in the 'app' or 'libs' directories. You can specify multiple directories to watch.

nodemon --watch app --watch libs app/server.js

Delay Restart

Delays the restart upon changes for a specified amount of time (in seconds). This can be useful if you're waiting for a compilation of files to complete before restarting.

nodemon --delay 10 app/server.js

Script Configuration

Allows you to configure nodemon as a script in your package.json file, enabling you to start your application with 'npm start'.

{\n  \"scripts\": {\n    \"start\": \"nodemon app.js\"\n  }\n}

Ignore Specific Files

Prevents nodemon from restarting when changes are made to specific files. Useful when you don't want to trigger a restart for changes in non-relevant files.

nodemon --ignore 'app/ignore.js'

Other packages similar to nodemon

Keywords

FAQs

Package last updated on 10 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc