🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

cli-truncate

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-truncate - npm Package Compare versions

Comparing version
4.0.0
to
5.0.0
+2
-2
index.js

@@ -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 @@ }

{
"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"
}
}