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

watchx

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchx

Watch and execute

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

watchx

Tool that watches files and executes scripts

Install

npm install --global watchx

Usage

Copy example config and edit to fit your needs, then execute:

watchx [config file]

Example config

{
  "DIR"     : "/directory/to/watch",
  "IGNORE"  : [".git/**", "node_modules"],
  "DEBOUNCE": 100,
  "ACTIONS" : {
    "SINGLE_CHANGE"  : "/scripts/single_change.sh",
    "MULTIPLE_CHANGE": "/scripts/multiple_change.sh"
  }
}

Actions

Each action has corresponding script for execution. Here is a list of actions:

  • SINGLE_CHANGE – only one file was changed
  • MULTIPLE_CHANGE – multiple files were changed in period of debounce

FAQs

Package last updated on 24 Sep 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