Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
by sindresorhusJavaScript
Last 12 weeks ยท 5 commits
4 of 6 standards met
Repository: sindresorhus/string-length. Description: Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes Stars: 170, Forks: 12. Primary language: JavaScript. Languages: JavaScript (84.3%), TypeScript (15.7%). License: MIT. Latest release: v7.0.1 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, BendingBender, bjnewman, dezren39, hsablonniere, kevin940726, LitoMore, notslang, timdeschryver.
This removes the dependency in favor of Node.js's built-in , available since Node 16.11. The engine requirement is bumped from to to match. This aligns with the e18e ecosystem cleanup effort and reduces the dependency tree for the 50+ packages that depend on .
Hi there, when trying to use this in Firefox (113.0.2) I get this error: Downgrading to 5 fixes it. Best regards, CK