filesize.js
filesize.js copied to clipboard
BigInt support?
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!
sounds good to me.
This is 10.0.0.