getfilesize
v1.1.0
Published
Get Human Readable file size information
Downloads
43
Maintainers
Readme
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