mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 21:37:11 -04:00
feat(tool): text statistics
This commit is contained in:
parent
2f49631ff7
commit
0a7c3252e3
7 changed files with 67 additions and 1 deletions
3
src/tools/text-statistics/text-statistics.service.ts
Normal file
3
src/tools/text-statistics/text-statistics.service.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function getStringSizeInBytes(text: string) {
|
||||
return new TextEncoder().encode(text).buffer.byteLength;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue