cli-truncate
Advanced tools
+2
-2
@@ -80,4 +80,4 @@ import sliceAnsi from 'slice-ansi'; | ||
| sliceAnsi(text, 0, half) | ||
| + truncationCharacter | ||
| + sliceAnsi(text, length - (columns - half) + stringWidth(truncationCharacter), length) | ||
| + truncationCharacter | ||
| + sliceAnsi(text, length - (columns - half) + stringWidth(truncationCharacter), length) | ||
| ); | ||
@@ -84,0 +84,0 @@ } |
+8
-7
| { | ||
| "name": "cli-truncate", | ||
| "version": "4.0.0", | ||
| "version": "5.0.0", | ||
| "description": "Truncate a string to a specific width in the terminal", | ||
@@ -18,4 +18,5 @@ "license": "MIT", | ||
| }, | ||
| "sideEffects": false, | ||
| "engines": { | ||
| "node": ">=18" | ||
| "node": ">=20" | ||
| }, | ||
@@ -44,10 +45,10 @@ "scripts": { | ||
| "dependencies": { | ||
| "slice-ansi": "^5.0.0", | ||
| "string-width": "^7.0.0" | ||
| "slice-ansi": "^7.1.0", | ||
| "string-width": "^8.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "ava": "^5.3.1", | ||
| "tsd": "^0.29.0", | ||
| "xo": "^0.56.0" | ||
| "ava": "^6.4.1", | ||
| "tsd": "^0.33.0", | ||
| "xo": "^1.2.2" | ||
| } | ||
| } |
10915
0.18%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated