string-width
Advanced tools
+2
-2
@@ -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; |
+1
-1
| { | ||
| "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", |