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

Getting File Size without Reading Entire File

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