cli-truncate 5.2.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/package.json +4 -4
  3. package/readme.md +0 -1
package/index.d.ts CHANGED
@@ -114,5 +114,5 @@ cliTruncate(paragraph, process.stdout.columns);
114
114
  export default function cliTruncate(
115
115
  text: string,
116
116
  columns: number,
117
- options?: Options
117
+ options?: Options,
118
118
  ): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-truncate",
3
- "version": "5.2.0",
3
+ "version": "6.0.0",
4
4
  "description": "Truncate a string to a specific width in the terminal",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/cli-truncate",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "sideEffects": false,
19
19
  "engines": {
20
- "node": ">=20"
20
+ "node": ">=22"
21
21
  },
22
22
  "scripts": {
23
23
  "test": "xo && ava && tsd"
@@ -41,12 +41,12 @@
41
41
  "string"
42
42
  ],
43
43
  "dependencies": {
44
- "slice-ansi": "^8.0.0",
44
+ "slice-ansi": "^9.0.0",
45
45
  "string-width": "^8.2.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "ava": "^7.0.0",
49
49
  "tsd": "^0.33.0",
50
- "xo": "^1.2.2"
50
+ "xo": "^2.0.2"
51
51
  }
52
52
  }
package/readme.md CHANGED
@@ -145,7 +145,6 @@ cliTruncate('unicorns', 5, {position: 'end', truncationCharacter: '.'});
145
145
 
146
146
  cliTruncate('unicorns', 5, {position: 'end', truncationCharacter: ''});
147
147
  //=> 'unico'
148
-
149
148
  ```
150
149
 
151
150
  ## Related