title: How to show file writing progress percentage in nodejs?
body: <pre><code>var csv = json2csv(datas, fields);
    var path = './final_' + Date.now() + '.csv';
    fs.writeFile(path, csv, function (err, data) {
      if (err) { throw err; }
      else {
        console.log('File created &gt;&gt; ' + path)
      }
    });
  </code></pre>
  
  <p>Above code is use for generating CSV file and writing into it. This code is working perfectlly.</p>
  
  <blockquote>
    <p>But i am trying to show in percentage or anything of progress of
    writing in csv.<br>
    and i am trying to show it only in <strong>Commandprompt</strong>
    using <strong>console.log()</strong></p>
    
    <p>How can i achive this?</p>
  </blockquote>