New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wtch

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wtch

small gaze / livereload watch utility

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

wtch

stable

A small command-line app that watches for file changes and triggers a live-reload on file save. Watches the current working directory for js, html, css extensions, ignoring .git folder, node modules and bower components.

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

NPM

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)
    --port -p       the port to run livereload (defaults to 35729)

API

wtch(glob, [opt, cb])

Returns a through stream that watches the glob (or array of globs) with the given options and an optional callback.

Options:

  • cwd the current working directory for gaze
  • event the type of event for gaze, such as "all" or "changed" (defaults to changed)
  • port the port for livereload, defaults to 35729

License

MIT, see LICENSE.md for details.

Keywords

FAQs

Package last updated on 04 Feb 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc