pretty-size
2.0.0 • Public • Published
Overview :
Display human readable file size .
Install
npm install pretty-size --save;
Example :
const {prettySize} = require('pretty-size');
prettySize(454434343)
prettySize(454434343,true)
prettySize(134343,true)
prettySize(1024*1024)
prettySize(1024*1024*1024*1024,true)
prettySize(1024*1024*1024*1024,false)
License:
MIT .
Package Sidebar
Install
Weekly Downloads