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

exec-on-changed

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exec-on-changed

execute command when file changed

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

node-exec-on-changed

Node.js utility: execute command when file changed

exec-on-changed -d /path/to/watching/dir -f /path/to/exec/file
Table of Contents
  • Requirements
  • Usage
  • License

Requirements

  • development on Node 11.6.0

Usage

CLI

exec-on-changed -d /path/to/watching/dir -f /path/to/exec

Args

  • watching directory path : specified with --dir (-d)
  • path to changed file

Example

  • /path/to/exec
#!/bin/bash
echo "$@"

run exec-on-changed

$ exec-on-changed -d /path/to/watching/dir -f /path/to/exec

change any file in /path/to/watching/dir

$ touch /path/to/watching/dir/path/to/target

then, exec-on-changed process should display below.

/path/to/watching/dir path/to/target

Install

npm install --save-dev exec-on-changed

License

node-exec-on-changed is licensed under the MIT license.

Copyright © since 2018 shun@getto.systems

FAQs

Package last updated on 13 Jan 2019

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