Anyone aware of a Multiplatform library to format ...
# multiplatform
d
Anyone aware of a Multiplatform library to format (human readable) data sizes e.g.
17238
 → 
17.24 kB
? Must include JS. Used Package Search but nothing came up 🤷
I served my JS need by using this npm package and wrapping with:
Copy code
@JsModule("@tsmx/human-readable")
@JsNonModule
external object HumanReadable {
    fun fromBytes(byteCount: Long): String
}
j
This is like a 10-line function so you could always write it yourself
☝️ 1
d