Prettysize

prettysize

Convert bytes to other sizes for prettier logging.

In just 45 lines of code, this cheeky module by @davlgass makes it easy to humanize file sizes.

Get it: npm install --save prettysize

Sample usage:

var pretty = require('prettysize'); var str = pretty(123456789);

GIF FTW!

prettysize

Suggest a module

Comments