← Latest products

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

14 stars · GitHubexternal site

Visit github.comexternal site

Reactions (1)

Similar products

by description similarity

  1. counts tokens! like wc, but for tokens!

    Hacker News8 pts

  2. uWrap.js

    github.com

    A faster and more accurate text wrapping util in < 2KB

    Hacker News121 pts

  3. We built Chonkie, an open-source library for advanced chunking and embedding of text and code.

    Hacker News10 pts

  4. Ezno

    github.com

    a TypeScript checker written in Rust, is now open source

    Hacker News113 pts

  5. Regolith

    github.com

    Regex library that prevents ReDoS CVEs in TypeScript

    Hacker News27 pts