Node.js – How to get File Size in KB, MB and GB

Post Views: 725 In this tutorial we will see how to get file size in different formats like bytes, KB, MB & GB in Node.js. To get size of a file in Node.js we can use built-in module fs function fs.stat(), this function provides different file properties values out of which one is file size. … Continue reading Node.js – How to get File Size in KB, MB and GB