Is there a way to watch file changes in main js file runned in nodejs?

There is a main.js javascript file with programm.

I run it:

node –inspect-brk index.js

Every time when I change something in this file I have to rerun it.

I need some way to let nodejs know that this main.js file was changed and make nodejs rerun it.

Is there a way to watch file changes in main js file runned in nodejs?

38 thoughts on “Is there a way to watch file changes in main js file runned in nodejs?”

  1. 676162 698788Discover how to deal along with your domain get in touch with details and registration. Realize domain namelocking and Exclusive domain name Registration. 463074

    Reply

Leave a Comment