dev-monitor
v1.0.11
Published
A simple file watcher that restarts a Node.js process on file changes
Downloads
5
Readme
dev-monitor
A simple tool to monitor changes in your Node.js application and restart it automatically.
Installation 🛠️
Use the package manager npm to install dev-monitor.
npm i dev-monitor
Usage 📘
dev-monitor [your node app]
# example
dev-monitor ./server.js
How its works ⚙️
dev-monitor uses the chokidar package to watch for changes in the main file of your Node.js application, as well as all JavaScript, TypeScript, and JSON files in the same folder and its subfolders except for the ones in the node_modules folder. Whenever a change is detected, dev-monitor restarts the Node.js process automatically.
Important Note ⚠️
Fixed issue with executing TS files in versions 1.0.4 and lower. We strongly recommend upgrading to version 1.0.5 or higher to ensure proper functionality.