Skip to content

Npm module to get Human Readable file size information. 📁📦

License

Notifications You must be signed in to change notification settings

bharathvaj-ganesan/getfilesize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Built with Grunt Build Status Code Climate

getfilesize

Get Human Readable file size information.

Installation

$ npm install getfilesize --save

Usuage

var getFileSize = require('getfilesize');
console.log(getFileSize('dummy.txt'));
    /*=> 58.99 KB */
});

API

getFileSize([filePath])

Returns string containing the size of the file if exits else returns "File Not Found"

License

MIT © Bharathvaj Ganesan

About

Npm module to get Human Readable file size information. 📁📦

Resources

License

Stars

Watchers

Forks

Packages

No packages published