feat(tool): text statistics

This commit is contained in:
Corentin Thomasset 2022-04-14 01:06:06 +02:00
parent 2f49631ff7
commit 0a7c3252e3
No known key found for this signature in database
GPG key ID: DBD997E935996158
7 changed files with 67 additions and 1 deletions

View file

@ -0,0 +1,3 @@
export function getStringSizeInBytes(text: string) {
return new TextEncoder().encode(text).buffer.byteLength;
}