filesize
filesize copied to clipboard
filesize is a small ruby class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size.
This adds support for parsing negative file sizes and correctly printing them as requested in https://github.com/dominikh/filesize/issues/18.
For completeness sake, that's all. [According to Wikipedia](https://en.wikipedia.org/wiki/Blu-ray), that's 25GB for a single-layer disk, 50GB for a dual-layer disk, and then there is a host of other formats. In a...
Is there a reason this gem doesn't parse negative filesizes (e.g. `-50KB`)? Seems like when you're talking about memory capacities, it'd often make sense to talk about the absence of...
It would be great for semantic versioning to have a 1.0 release. Thanks.
I feel like `to_s` should be an alias of `pretty`. It makes printing things out easier.