wcwidth-o1
Find Unicode text cell width in no time for JavaScript/TS. glibc-based POSIX wcwidth/wcswidth for Node.js & TypeScript. I ported Markus Kuhn’s wcwidth to TypeScript and optimized it with bitset lookups for O(1) performance.
Open source
Reactions (1)
Similar products
by description similarity
`tc` like `wc` but for LLM tokens
github.comcounts tokens! like wc, but for tokens!
uWrap.js
github.comA faster and more accurate text wrapping util in < 2KB
Advanced Chunking in JavaScript/TypeScript with Chonkie
news.ycombinator.comWe built Chonkie, an open-source library for advanced chunking and embedding of text and code.
Ezno
github.coma TypeScript checker written in Rust, is now open source
Regolith
github.comRegex library that prevents ReDoS CVEs in TypeScript