Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
A small command-line app that watches for file changes and triggers a live-reload on file save (to be used with the LiveReload plugin). Watches the current working directory for js,html,css
file changes. Ignores .git
, node_modules
and bower_components
folders.
npm install wtch -g
#start watching ..
wtch
Particularly useful alongside tools like wzrd.
wzrd index.js | wtch
With options, and using garnish for pretty-printing.
wzrd test/index.js | wtch --dir test -e js,css,es6 | garnish
PRs/suggestions welcome.
Usage:
wtch [opts]
Options:
--dir -d current working directory to watch (defaults to cwd)
--extension -e specifies an extension or a comma-separated list (default js,css,html)
--event the type of event to watch, "all" or "change" (default "change")
--port -p the port to run livereload (defaults to 35729)
--verbose log the file changes as well
--poll enable polling for file watching
wtch(glob, [opt, cb])
Returns a through stream that watches the glob (or array of globs) with the given options and an optional callback.
Supported options:
cwd
the current working directory for chokidarpoll
whether to use polling, default falseevent
the type of event to watch, can be "change"
(default, only file save) or "all"
(remove/delete/etc)port
the port for livereload, defaults to 35729verbose
to log file changesMIT, see LICENSE.md for details.
FAQs
small livereload/watch command line utility
The npm package wtch receives a total of 18 weekly downloads. As such, wtch popularity was classified as not popular.
We found that wtch 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.