Create A File Watcher With NodeJS and Child Process

2012 Apr15
I

t is not uncommon in the life of a software developer to want to execute a series of tasks every time a file changes. It tends to come up more frequently in development, for example, you might want to concatenate a series of files, or send and email to an administrator, etc. It becomes even more beneficial to be able to watch all of the files in a given directory. Surprisingly, for as much as it seems to creep up, it tends not to be standard machinery it a large number of programming languages and their standard libraries. Luckily, [Node.js](http://www.nodejs.org) gives you all of the [tools](http://http://nodejs.org/api/fs.html#fs_

Read More