Last Updated: February 25, 2016
·
6.537K
· zwigby

Getting File Size without Reading Entire File

fs.stat(path, function(err, stat) {
  if(err) {
    // handle error
  }
  console.log(stat.size);    
});