I thought of this https://github.com/saket/file-size when I saw your question, mind you I have never tried it, but you can give it a look
r
Rob Elliot
01/24/2024, 4:22 PM
Thanks very much all for the pointers, I'll have a look at them
k
Klitos Kyriacou
01/24/2024, 4:31 PM
It seems the biggest difference between them is that some (like saket/file-size) use 1000 bytes per KB, some use 1024, and some give you the option to choose.