New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

watch-exec

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watch-exec

Run a specified command when any files in the target directory change.

latest
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
11
-38.89%
Maintainers
1
Weekly downloads
 
Created
Source

watch-exec

Run a specified command when any files in the target directory change.

Installation

$ npm install -g watch-exec

Usage

$ watch-exec -c [command] -w [path]

Notifications

To use the --notify flag for desktop notifications when the command completes or fails, you will need to have Growl notifications available to NodeJS.

  • Mac OS X (Darwin): brew install terminal-notifier
  • Ubuntu (Linux): sudo apt-get install libnotify-bin
  • Windows:
    • Download and install Growl for Windows.
    • Download growlnotify and (important) unpack it to a folder in your path.

If these instructions are not working correctly, check the installation steps for node-growl, which is used internally by watch-exec.

Thanks to @naholyr for adding support for notifications!

Keywords

watch

FAQs

Package last updated on 25 Jan 2016

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