changeling
changeling is a readable stream that watches a file for changes and then outputs its contents.
Install
npm install changeling
Example
var changeling =var file =file// Stop watching after 10 seconds
Note
If a file is deleted while being watched, an error will be emitted from the relevant changeling object.