37 packages found
pvtsutils is a set of common utility functions used in various Peculiar Ventures TypeScript based projects.
A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.
Return the next extended grapheme cluster break in a string after a specified position.
Grapheme cluster break tooling.
Return a Unicode code point from a string at a specified position.
Test if a position in a string marks the start of a UTF-16 surrogate pair.
Create a string from a sequence of Unicode code points.
Maximum Unicode code point in the Basic Multilingual Plane (BMP).
Maximum Unicode code point.
Return the previous extended grapheme cluster break in a string before a specified position.
Percent-encode a UTF-16 encoded string according to RFC 3986.
Convert a UTF-16 encoded string to an array of integers using UTF-8 encoding.
Encodes text and binary data to a subset of Unicode plane 1 (BMP). Runs in browser and Node.js. Character compression. Makes binary data copy-pastable. URL-safe.
- base-unicode
- compression
- encode
- decode
- string
- binary
- typescript
- browser
- Node.js
- UTF16
- UCS-2
- URI
- URL-safe
- copy-pastable
Brotli compression/decompression that encodes to base-unicode and back. Node.js and Browser support.
Return a regular expression to match an unpaired UTF-16 surrogate.
Return a regular expression to match a UTF-16 surrogate pair.
UTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.
Standard string unicode constants.