Closed sindresorhus closed 11 years ago
require('filesize')(-4) returns an empty string. Should return -4.00B.
require('filesize')(-4)
-4.00B
What's the use case where this is valid? I'm unaware of any file system allowing for smaller than 0B files.
If you want to show the size difference of something.
Example: https://github.com/sindresorhus/grunt-sizediff
require('filesize')(-4)
returns an empty string. Should return-4.00B
.