You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

string-width

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-width - npm Package Compare versions

Comparing version
3.0.0
to
3.1.0
+2
-2
package.json
{
"name": "string-width",
"version": "3.0.0",
"version": "3.1.0",
"description": "Get the visual width of a string - the number of columns required to display it",

@@ -50,3 +50,3 @@ "license": "MIT",

"is-fullwidth-code-point": "^2.0.0",
"strip-ansi": "^5.0.0"
"strip-ansi": "^5.1.0"
},

@@ -53,0 +53,0 @@ "devDependencies": {

@@ -30,2 +30,5 @@ # string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width)

//=> 1
stringWidth('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
// => 5
```

@@ -32,0 +35,0 @@