title: nodejs prepending to a file
body: <p>For Node.js, what is the best way to prepend to a file in a way SIMILAR to</p>
  
  <pre><code>fs.appendFile(path.join(__dirname, 'app.log'), 'appendme', 'utf8')
  </code></pre>
  
  <p>Personally, the best way really revolves around a asynchronous solution to create a log where I can basically push onto the file from the top.</p>