
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Usage: watch [options] <file>
Options:
-h, --help output usage information
-V, --version output the version number
-m, --match <glob> Only report changes when filename matches glob.
-i, --interval <s> Run on an interval of seconds.
-b, --before <cmd> Command to run before monitoring starts.
-r, --running Monitor long-running process.
-v, --verbose Be verbose.
-l, --live Live reload.
-d, --delay <ms> Time in ms to delay updates.
-w, --watch <dir> Watch for changes on dir.
Runs make when a file changes:
$ watch make
Runs make before monitoring (-b), then runs node server, a long-running process (-r):
$ watch -rb make node server
Runs make then reloads (-l) browser when files of type .js or .css change (-m):
$ watch -lm *.{js,css} make
The above method requires this script tag:
<script src="http://localhost:3003/reload.js"></script>
If you use Components you can add it in like this:
"development": {
"stagas/watch-js": "*"
}
Then you can do require('stagas-watch-js') in your development files.
Now, in conjuction with watch -l make, when you save a file in your editor it will run make and reload your browser automatically.
Combinations possible:
$ watch -lrb "make clean build" node server
MIT
FAQs
watch
We found that watch-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.