use picocolors instead of terminal control sequence for color marks

pull/3385/head
Yuxuan Zhang 2 years ago
parent e31a3e5d5c
commit ace515b3f9
No known key found for this signature in database
GPG Key ID: 6910B04F3351EF7D

@ -1,8 +1,9 @@
import ora from 'ora' import ora from 'ora'
import humanizeDuration from 'humanize-duration' import humanizeDuration from 'humanize-duration'
import c from 'picocolors'
export const okMark = '\x1b[32m\x1b[0m' export const okMark = c.green('✓')
export const failMark = '\x1b[31m\x1b[0m' export const failMark = c.red('✖')
export type UpdateHandle = (done: number, total?: number) => any export type UpdateHandle = (done: number, total?: number) => any

Loading…
Cancel
Save