npm · npm:string-length
string-length active
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
The latest stable version of string-length is 7.0.1, published on 2026-01-21. Verified by Vigia on 2026-11-12.
| Latest stable version | 7.0.1 |
|---|---|
| Published | 2026-01-21 14:39:13 UTC |
| Install | npm install string-length@latest |
| Requires (engines) | {"node":">=20"} |
| Peer dependencies | — |
| Dist-tags | latest: 7.0.1 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 12:40:51 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | slowing down |
|---|---|
| Last stable release | 2026-01-21 14:39:13 UTC · 295 days ago |
| Stable releases in the last 12 months | 2 |
| Published versions | 16 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
7.0.1 | 2026-01-21 14:39:13 UTC |
7.0.0 | 2026-01-21 02:53:46 UTC |
6.0.0 | 2023-06-04 08:35:56 UTC |
5.0.1 | 2021-09-13 18:20:51 UTC |
5.0.0 | 2021-06-05 14:53:05 UTC |
4.0.2 | 2021-03-17 06:47:19 UTC |
4.0.1 | 2020-03-19 16:38:12 UTC |
4.0.0 | 2020-02-21 10:58:55 UTC |
3.1.0 | 2019-04-02 02:35:54 UTC |
3.0.0 | 2019-03-18 08:14:18 UTC |
2.0.0 | 2017-07-27 01:03:51 UTC |
1.0.1 | 2015-07-16 21:16:09 UTC |
1.0.0 | 2014-08-13 13:37:13 UTC |
0.1.2 | 2014-05-01 21:49:01 UTC |
0.1.1 | 2014-04-30 22:51:26 UTC |
0.1.0 | 2014-04-16 21:49:45 UTC |
Showing the 16 most recent of 16 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 6.0.0 |
node 18 | 6.0.0 |
node 20 | 7.0.1 |
node 22 | 7.0.1 |
node 24 | 7.0.1 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of string-length?
The latest stable version of string-length is 7.0.1, published on 2026-01-21. Verified by Vigia on 2026-11-12.
How do I install the latest version of string-length?
Run npm install string-length@latest. The latest stable version is 7.0.1 (verified 2026-11-12).
Is string-length deprecated?
No. string-length is not marked as deprecated in the registry.
Which Node.js version does string-length require?
string-length 7.0.1 declares this requirement: {"node":">=20"}.
Does string-length 7.0.1 have known vulnerabilities?
No known advisories affect string-length 7.0.1 according to the data Vigia checks.
Is string-length still maintained?
string-length published 2 stable releases in the last 12 months; the most recent was 295 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- requires-port
- web-streams-polyfill
- @colors/colors
- @radix-ui/react-tooltip
- @smithy/util-stream
- @smithy/node-config-provider
- lie
- @octokit/openapi-types
- @smithy/querystring-parser
- diff-sequences
- postcss-nested
- unist-util-visit
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/string-length) [](https://vigia.coredls.cloud/npm/string-length) [](https://vigia.coredls.cloud/npm/string-length)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/string-length
GET https://vigia.coredls.cloud/v1/packages/npm/string-length/versions/{version}