🎩 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
5.1.0
to
5.1.1
+4
-4
index.js

@@ -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 = {

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