getfilesize

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i getfilesize

Weekly Downloads

8

Version

1.1.0

License

MIT

Last publish

Collaborators

  • bharathvaj