unicode-byte-truncate

js
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
Version 1.0.0 License MIT
Keywords
slicesubstringsubstrtrunctruncatetrimunicodemultibytemulti-bytesurrogatepairpairsmaxbytebytes