Skip to content

Commit 3c191c0

Browse files
authored
feat: replace strip-ansi with util.stripVTControlCharacters (#5267)
closes #5265
1 parent 8f1c8d8 commit 3c191c0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

docs/_data/usage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const stripAnsi = require('strip-ansi');
3+
const {stripVTControlCharacters} = require('util');
44
const {resolve} = require('path');
55
const {execSync} = require('child_process');
66

@@ -11,7 +11,7 @@ const flag = '--help';
1111
* Return the output of `mocha --help` for display
1212
*/
1313
module.exports = () => {
14-
return stripAnsi(
14+
return stripVTControlCharacters(
1515
String(
1616
execSync(`"${process.execPath}" ${executable} ${flag}`, {
1717
cwd: resolve(__dirname, '..')

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@
162162
"rollup-plugin-polyfill-node": "^0.8.0",
163163
"rollup-plugin-visualizer": "^5.6.0",
164164
"sinon": "^9.0.3",
165-
"strip-ansi": "^6.0.0",
166165
"unexpected": "^11.14.0",
167166
"unexpected-eventemitter": "^2.2.0",
168167
"unexpected-map": "^2.0.0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy