An open API service indexing awesome lists of open source software.

https://github.com/prettydiff/prettybytes

Convert positive integers to human readable file sizes
https://github.com/prettydiff/prettybytes

Last synced: 11 months ago
JSON representation

Convert positive integers to human readable file sizes

Awesome Lists containing this project

README

          

prettybytes
===========

Convert positive integers to human readable file sizes

Use with Node
-------------

var prettybytes = require("prettybytes");
prettybytes.size(123456789); // returns "117.73MB"

Use with Vanilla JS
-------------------

prettybytes(1020); // returns "0.99KB"