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

Pretty JSON debug #3

Closed
vesln opened this issue Dec 31, 2013 · 0 comments
Closed

Pretty JSON debug #3

vesln opened this issue Dec 31, 2013 · 0 comments

Comments

@vesln
Copy link
Member

vesln commented Dec 31, 2013

Here is what I have:

debug('Dir: %j', obj);

Here is how it looks:

http://f.cl.ly/items/432A2k3e2J3U1z303738/Screen%20Shot%202013-12-31%20at%206.26.52%20PM.png

The problem comes with it using console.warn directly and not parsing the input itself. I think if we decouple it and just write to process.stderr (or any stream actually) we can improve it just a but and introduce nice things like named params and so on. Thoughts?

@vesln vesln closed this as completed Apr 8, 2015
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

No branches or pull requests

1 participant