https://github.com/c-lodder/node-watch-directory
Watch a directory and execute a shell script
https://github.com/c-lodder/node-watch-directory
Last synced: about 1 year ago
JSON representation
Watch a directory and execute a shell script
- Host: GitHub
- URL: https://github.com/c-lodder/node-watch-directory
- Owner: C-Lodder
- Created: 2018-06-19T15:33:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T13:46:15.000Z (over 6 years ago)
- Last Synced: 2025-01-29T07:30:06.662Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-watch-directory
Watch a directory and execute a shell script when a file within that directory is changed.
Nothing special, just for personal use.
## Install
- `npm i chalk --save`
- `npm i chokidar --save`
- `npm i child_process --save`
Cause I can't be arsed to create a `package.json` file
## Usage
1. Create your shell script
2. Open `watch.js` and change the config options to suite your needs
3. Run `node watch.js`