What is the purpose of the –watch flag in Node.js 18+ and how does it compare to nodemon?

Node.js Developer Hard

Node.js Developer — Hard

What is the purpose of the –watch flag in Node.js 18+ and how does it compare to nodemon?

Key points

  • --watch restarts the process on file changes
  • Eliminates the need for nodemon
  • Provides similar functionality to nodemon
  • Built-in feature in Node.js 18+

Ready to go further?

Related questions