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
4.2.1
to
4.2.2
+2
-2
index.js

@@ -11,3 +11,3 @@ 'use strict';

string = string.replace(emojiRegex(), ' ');
string = stripAnsi(string);

@@ -18,3 +18,3 @@ if (string.length === 0) {

string = stripAnsi(string);
string = string.replace(emojiRegex(), ' ');

@@ -21,0 +21,0 @@ let width = 0;

{
"name": "string-width",
"version": "4.2.1",
"version": "4.2.2",
"description": "Get the visual width of a string - the number of columns required to display it",

@@ -5,0 +5,0 @@ "license": "MIT",