alexeyraspopov / picocolors

The tiniest and the fastest library for terminal output formatting with ANSI colors
ISC License
1.34k stars 44 forks source link

feat: enable browser support #53

Open nathanbabcock opened 1 year ago

nathanbabcock commented 1 year ago

picocolors-browser

chalk introduced browser support mid last year (https://github.com/chalk/chalk/issues/535). ansi-colors also supports the browser.

In order to maintain parity with the packages that picocolors is benchmarked against, it should enable browser support too!

As the README says:

  • Node.js v6+ & browsers support

Closes #52

alexeyraspopov commented 1 year ago

Thank you for your contribution.

I won't be able to merge this PR. Picocolors' browsers support means bundlers won't break if the package gets accidentally added to browser bundles. The suggested feature only works in Chrome, which is not the whole Web.