Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable browser support #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nathanbabcock
Copy link

picocolors-browser

chalk introduced browser support mid last year (chalk/chalk#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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Colors do not work in browser console
3 participants