unjs / consola

🐨 Elegant Console Logger for Node.js and Browser
Other
6.12k stars 175 forks source link

feat: color utils #200

Closed pi0 closed 1 year ago

pi0 commented 1 year ago

Export color utils from consola/utils subpath:

Implementation is based on colorette which was already being used to make some small tweaks and generate types from the source. (Thanks @jorgebucaran and contribs for this amazing lib ❤️ )

Also thanks @antfu for original idea in #166

codecov[bot] commented 1 year ago

Codecov Report

Merging #200 (475a679) into main (9e41614) will increase coverage by 1.23%. The diff coverage is 70.62%.

@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   59.98%   61.22%   +1.23%     
==========================================
  Files          11       12       +1     
  Lines        1222     1359     +137     
  Branches       50       58       +8     
==========================================
+ Hits          733      832      +99     
- Misses        489      527      +38     
Impacted Files Coverage Δ
src/reporters/fancy.ts 33.10% <33.33%> (ø)
src/utils/box.ts 66.98% <50.00%> (+0.20%) :arrow_up:
src/utils/color.ts 71.73% <71.73%> (ø)