strip-ansi 7.1.0 → 7.1.2

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 (2) hide show
  1. package/package.json +3 -1
  2. package/readme.md +5 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strip-ansi",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "description": "Strip ANSI escape codes from a string",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/strip-ansi",
@@ -12,6 +12,8 @@
12
12
  },
13
13
  "type": "module",
14
14
  "exports": "./index.js",
15
+ "types": "./index.d.ts",
16
+ "sideEffects": false,
15
17
  "engines": {
16
18
  "node": ">=12"
17
19
  },
package/readme.md CHANGED
@@ -2,10 +2,13 @@
2
2
 
3
3
  > Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
4
4
 
5
+ > [!NOTE]
6
+ > Node.js has this built-in now with [`stripVTControlCharacters`](https://nodejs.org/api/util.html#utilstripvtcontrolcharactersstr). The benefit of this package is consistent behavior across Node.js versions and faster improvements. The Node.js version is actually based on this package.
7
+
5
8
  ## Install
6
9
 
7
- ```
8
- $ npm install strip-ansi
10
+ ```sh
11
+ npm install strip-ansi
9
12
  ```
10
13
 
11
14
  ## Usage
@@ -20,12 +23,6 @@ stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
20
23
  //=> 'Click'
21
24
  ```
22
25
 
23
- ## strip-ansi for enterprise
24
-
25
- Available as part of the Tidelift Subscription.
26
-
27
- The maintainers of strip-ansi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
28
-
29
26
  ## Related
30
27
 
31
28
  - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
@@ -38,4 +35,3 @@ The maintainers of strip-ansi and thousands of other packages are working with T
38
35
 
39
36
  - [Sindre Sorhus](https://github.com/sindresorhus)
40
37
  - [Josh Junon](https://github.com/qix-)
41
-