GitShow/sindresorhus/string-length
sindresorhus

string-length

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

by sindresorhus
Star on GitHubForknpm

JavaScript

172 stars12 forks10 contributorsActive · 1mo agoSince 2014v7.0.1MIT

Meet the team

See all 10 on GitHub →
sindresorhus
sindresorhus35 contributions
Richienb
Richienb5 contributions
BendingBender
BendingBender2 contributions
bjnewman
bjnewman1 contribution
dezren39
dezren391 contribution
hsablonniere
hsablonniere1 contribution
kevin940726
kevin9407261 contribution
LitoMore
LitoMore1 contribution

Languages

View on GitHub →
JavaScript84.3%
TypeScript15.7%

Commit activity

Last 12 weeks · 1 commit

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
ckruse
Build error with latest version using viteClosedIssue

hey there, the latest release causes a build error in vite: Am I missing something? Best regards, Christian Kruse

ckruse · 7mo ago
bjnewman
Replace strip-ansi with native stripVTControlCharactersMergedPR

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 · 7mo ago
ckruse
error messages in firefox with 6.0: `Uncaught TypeError: Intl.Segmenter is not a constructor`ClosedIssue

Hi there, when trying to use this in Firefox (113.0.2) I get this error: Downgrading to 5 fixes it. Best regards, CK

ckruse · 11mo 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 (7mo 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.

·@ofershap

Replace github.com with gitshow.dev