- Adds ISO/IEC 80000-13:2008 format
- Adds compatibility mode for parsing older programs
- Adds jedec as an alias for compatibility mode
- Improves error checking for modes
- Adds TypeScript definitions
- Add petabyte (
pb
) support
- Change "kB" to "KB" in format output
- Remove support for Node.js 0.6
- Remove support for ComponentJS
- Add option "unit"
- Add option "unitSeparator"
- Drop partial bytes on all parsed units
- Fix non-finite numbers to
.format
to returnnull
- Fix parsing byte string that looks like hex
- perf: hoist regular expressions
- add option "decimalPlaces"
- add option "fixedDecimals"
- add
.format
export - add
.parse
export
- remove map recreation
- remove unnecessary object construction
- fix browserify require
- remove node.extend dependency
- add option "case"
- add option "thousandsSeparator"
- return "null" on invalid parse input
- support proper round-trip: bytes(bytes(num)) === num
- units no longer case sensitive when parsing
- add negative support. fixes #6
- added terabyte support
- add .component
- bytes(200).should.eql('200b')
- add bytes to string conversion [yields]