-
Notifications
You must be signed in to change notification settings - Fork 448
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
colored JSON Ouput #21
Comments
@thomasfr would the built in As a user of colors.js, more general JSON highlighting sounds like a really heavy thing to add to colors.js. Seems like a job for a separate lib. |
@cjc is right. Doesn't make sense to add this to |
mearns
added a commit
to mearns/colors.js
that referenced
this issue
Sep 13, 2018
As mentioned [here](Marak#240 (comment)), there's a potential conflict between FORCE_COLOR and FORCE_NO_COLOR. Decided to address this by issuing a warning (when supported) and falling back on FORCE_COLOR, since that's will preserve existing behavior.
mearns
added a commit
to mearns/colors.js
that referenced
this issue
Sep 13, 2018
DABH
added a commit
that referenced
this issue
Sep 26, 2018
#21 Add support for FORCE_NO_COLOR env var
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a feature request.
add a function for coloring a valid json string. Otherwise just return it as it is.
So when doing
console.log('{"foo":"bar"}'.highlightJson);
the json string gets printed nicely colored.The text was updated successfully, but these errors were encountered: