Skip to content

Commit 7ddda63

Browse files
committed
Drop package
1 parent fd8df0d commit 7ddda63

3 files changed

Lines changed: 2 additions & 13 deletions

File tree

node/package-lock.json

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

node/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"main": "./lib/retire.js",
1515
"dependencies": {
16-
"ansi-colors": "^4.1.1",
1716
"astronomical": "^3.2.0",
1817
"commander": "^10.0.1",
1918
"proxy-agent": "^6.4.0",

node/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import * as reporting from './reporting';
1111
import os from 'os';
1212
import path from 'path';
1313
import fs from 'fs';
14-
import colors from 'ansi-colors';
1514
import { EventEmitter } from 'events';
1615
import { Finding, Options, severityLevels } from './types';
1716
import * as z from 'zod';
@@ -67,7 +66,8 @@ const prg = program
6766
.parse()
6867
.opts();
6968

70-
const colorwarn = prg.colors ? colors.red : (x: string) => x;
69+
const red = (x: string) => `\u001b[31m${x}\u001b[39m`;
70+
const colorwarn = prg.colors ? red : (x: string) => x;
7171
const jsrepolocation: string[] = (prg.jsrepo ?? "'central'")
7272
.split(',')
7373
.map((x: string) =>

0 commit comments

Comments
 (0)