Skip to content

Commit

Permalink
use custom strip-ansi function (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored Oct 3, 2024
1 parent 7b0d421 commit 1b3e02f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 35 deletions.
33 changes: 0 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
},
"dependencies": {
"chalk": "^4.1.1",
"strip-ansi": "^5.2.0",
"yargs": "^17.6.0"
}
}
2 changes: 1 addition & 1 deletion src/concurrently.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as chalk from 'chalk';
import stripAnsi from 'strip-ansi';
import { ConcurrentCommand } from './command';
import { getName } from './get-name';
import { logError } from './log-error';
import { runCommand } from './run-command';
import { stripAnsi } from './strip-ansi';
import { WaitCondition } from './wait-condition';

/**
Expand Down
3 changes: 3 additions & 0 deletions src/strip-ansi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function stripAnsi(value: string): string {
return value.replace(/\u001b[^m]*?m/g, '');
}

0 comments on commit 1b3e02f

Please sign in to comment.