jorgebucaran / colorette

🌈Easily set your terminal text color & styles
MIT License
1.61k stars 51 forks source link

Upgrading to 2.0.0 #70

Closed jorgebucaran closed 3 years ago

jorgebucaran commented 3 years ago

If you're upgrading from 1.x:

If you were previously using options.enabled and wish to override automatic color detection, use createColors().

import { createColors } from "colorette"
 ...
const { blue } = createColors({ useColor: myOptions.enabled })

console.log(blue("I'm blue"))
kibertoad commented 3 years ago

@jorgebucaran What's the rationale behind default colouring functions being enabled by default, rather than relying on auto-detect by default, btw?