cli-truncate
Advanced tools
+4
-4
@@ -42,6 +42,2 @@ import sliceAnsi from 'slice-ansi'; | ||
| if (columns === 1) { | ||
| return truncationCharacter; | ||
| } | ||
| const length = stringWidth(text); | ||
@@ -53,2 +49,6 @@ | ||
| if (columns === 1) { | ||
| return truncationCharacter; | ||
| } | ||
| // ANSI escape sequence constants | ||
@@ -55,0 +55,0 @@ const ANSI = { |
+1
-1
| { | ||
| "name": "cli-truncate", | ||
| "version": "5.1.0", | ||
| "version": "5.1.1", | ||
| "description": "Truncate a string to a specific width in the terminal", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |