parshap

parshap/utf8-byte-length

Get byte length of utf8 string

JavaScript
6
5
Do What The F*ck You Want To Public License

utf8-byte-length is a JavaScript library for calculating the byte length of UTF-8 strings, accounting for multi-byte characters and surrogate pairs. It's designed for developers working with UTF-8 encoded text, particularly those using Node.js or browser environments, who need to accurately determine string byte lengths without relying on Buffer.byteLength.

Total donated
Undistributed
Share with your subscribers: