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

add %c handling to console, add color support for proxy console #71

Merged
merged 4 commits into from Jun 24, 2019

Conversation

Prozi
Copy link
Contributor

@Prozi Prozi commented Jun 21, 2019

I've added support for:

console.log('%cthis is colored text', 'color: red; background: pink;')

since I work with pixi.js (pixi-shim) and they have a pretty colored hello message that was looking plain ugly

to see the message in action

  1. add library pixi-shim
import {Application} from 'pixi-shim'
new Application
  1. see console tab

@Prozi
Copy link
Contributor Author

Prozi commented Jun 21, 2019

fixed console.log('%c') corner case

@Prozi
Copy link
Contributor Author

Prozi commented Jun 23, 2019

added %s string replace

@egoist egoist merged commit 1c404f0 into egoist:master Jun 24, 2019
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.

None yet

2 participants