sindresorhus

string-length

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

by sindresorhus

JavaScript

JavaScript84.3%
TypeScript15.7%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
bjnewman

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 .

bjnewman · 9mo ago
Structured data for AI agents

Repository: sindresorhus/string-length. Description: Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes Stars: 172, Forks: 12. Primary language: JavaScript. Languages: JavaScript (84.3%), TypeScript (15.7%). License: MIT. Latest release: v7.0.1 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 2mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, BendingBender, bjnewman, dezren39, hsablonniere, kevin940726, LitoMore, notslang, timdeschryver.