Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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
You can use garnish for pretty-printing logs.
wtch --verbose | garnish
See examples for use with browserify and other tools.
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 changesThis can be used for live-reloading alongside wzrd, beefy and similar bundlers. For example:
wzrd test/index.js | wtch --dir test -e js,css,es6 | garnish
Or, even for a simple site with no JS content. The following example uses http-server and listens for HTML/CSS changes in the current directory.
http-server -o -p 8000 | wtch --verbose | garnish
MIT, see LICENSE.md for details.
FAQs
small livereload/watch command line utility
The npm package wtch receives a total of 8 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.