Skip to content

Simple script that watches for file changes and restarts a command

Notifications You must be signed in to change notification settings

elliotsa/Watch-and-Run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Watch and Run

Very simple script that will restart whatever command you pass it when a file changes in the current directory (note: it's recursive)

This is a very rough implementation and simply uses Node's built in fs.watch method on top of its child_process.spawn method.

How to use:

node ./watch.js [command]

Will update this in my free time.

About

Simple script that watches for file changes and restarts a command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published