1.2.0 • Published 7 years ago
exec-on-changed v1.2.0
node-exec-on-changed
Node.js utility: execute command when file changed
exec-on-changed -d /path/to/watching/dir -f /path/to/exec/fileTable of Contents
Requirements
- development on Node 11.6.0
Usage
CLI
exec-on-changed -d /path/to/watching/dir -f /path/to/execArgs
- 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/execchange any file in /path/to/watching/dir
$ touch /path/to/watching/dir/path/to/targetthen, exec-on-changed process should display below.
/path/to/watching/dir path/to/targetInstall
npm install --save-dev exec-on-changedLicense
node-exec-on-changed is licensed under the MIT license.
Copyright © since 2018 shun@getto.systems