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 %O formatter #278

Closed
thom4parisot opened this issue May 10, 2016 · 2 comments
Closed

Add %O formatter #278

thom4parisot opened this issue May 10, 2016 · 2 comments

Comments

@thom4parisot
Copy link
Contributor

As of https://developer.chrome.com/devtools/docs/console-api#consolelogobject-object

%O Formats the value as an expandable JavaScript object.

Unless if it not a "standard"? I guess the formatting should be the same as if the object was passed as the first argument of debug.

const payload = { hello: 'world' };

debug('%O', payload);
// ===
debug(payload)

Any opinion on this?

@thom4parisot
Copy link
Contributor Author

Hm, it appears that actually this is the same as the %o formatter. Maybe just aliasing it to match other console implementations?

@TooTallNate
Copy link
Contributor

For Node.js you mean? Ya sure, patch welcome.

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

No branches or pull requests

2 participants