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

cli-watch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-watch

A file watch command line tool for run shell while file changed.

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
47
increased by67.86%
Maintainers
1
Weekly downloads
 
Created
Source

cli-watch is a cmd tool to run shell while files changed.

Install

npm i -g cli-watch

Usage

watch -f a.js -r 'uglifyjs a.js -o b.js'

This command will watch a.js, and run uglifyjs a.js -o b.js when it changed.

You can use glob patterns for the files param, such as:

watch -f '*.js' -r 'uglifyjs ${p} -o ${n}.min.js'

Options

-h, --help               output usage information
-V, --version            output the version number
-f, --files [value]      glob files pattern, use ; to separate multiple path
-r, --run [value]        run command while files changed, you can use ${p} to instead of the changed file path, and use ${n} to instead of the name of changed file path without ext
-n, --dontRunWhileStart  dont run the command while start watch

Keywords

FAQs

Package last updated on 17 Aug 2018

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