filesize.js icon indicating copy to clipboard operation
filesize.js copied to clipboard

BigInt support?

Open danielberndt opened this issue 3 years ago • 1 comments

Passing a BigInt to filesize causes an exception (in Chrome 98, but it's probably the same in all other envs too):

Uncaught TypeError: Cannot convert a BigInt value to a number at isNaN ()

Given that BigInt is widely supported these days it could make sense for this library to also support it as an input.

Curious about your thoughts!

danielberndt avatar Feb 10 '22 10:02 danielberndt

sounds good to me.

avoidwork avatar Feb 16 '22 03:02 avoidwork

This is 10.0.0.

avoidwork avatar Sep 28 '22 11:09 avoidwork