parshap

parshap/truncate-utf8-bytes

Truncate string to length in bytes

JavaScript
16
2
No license

This project provides a JavaScript utility for truncating strings to a specified byte length, ensuring correct handling of multi-byte characters and surrogate pairs. It's designed for developers working with UTF-8 encoded strings, particularly in Node.js or browser environments, who need precise byte-level string manipulation.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of parshap/truncate-utf8-bytes

Account's avatar
Get utf8 byte length of string
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on parshap/truncate-utf8-bytes

Top contributors

parshap's profile
parshap
7 contributions
benlangfeld's profile
benlangfeld
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet