Node.js monitor file for changes and parse them
<p>I need to monitor a file for changes. Due to a large amount of new entries to this file I would need to 'monitor' this file. I would need to get the new inserted content to this file to be able to parse this content.</p>

<p>I found this code:</p>

<pre><code>fs.watchFile('var/log/query.log', function() {
console.log('File Changed ...');
//how to get the new line which is now inserted?
});
</code></pre>