Wait for a file or directory to change or appear, then run a command once. The watched file or directory does not have to exist yet.
Heavily based on the wonderful watch-run by @queckezz.
Simply need to wait for a file/directory? Use just-wait by @Download which is a fork of wait-run. It allows you to chain &&
commands.
npm install -g wait-run
wait-run --pattern '*.*' -- say hello # waits for any change in cwd then runs once.
BSD 3-Clause license. Copyright © 2016, Rick Wong. All rights reserved.