1.1.0 • Published 7 years ago

getfilesize v1.1.0

Weekly downloads
120
License
MIT
Repository
github
Last release
7 years ago

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