@x-oasis/ansi-colors
v0.14.0
Published
picocolors-style ANSI terminal color formatters with a runtime on/off switch
Downloads
166
Readme
@x-oasis/ansi-colors
picocolors-style ANSI terminal color formatters with a runtime on/off switch.
Installation
$ npm i @x-oasis/ansi-colorsHow to use
import { colors, getUseColor, setUserColor } from '@x-oasis/ansi-colors'
console.log(colors.green('hello'))
setUserColor(false) // strip colors at runtimeHow to run test
$ pnpm test