-
Notifications
You must be signed in to change notification settings - Fork 34
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
Arrays and Objects aren't properly displayed in JSON from terminal #2
Comments
tremblaysimon
changed the title
Arrays and Objects aren't properly displayed in terminal
Arrays and Objects aren't properly displayed in JSON from terminal
May 24, 2021
Just add a verifyJWS(scannedJWS).then(
function (result) {
return decodeJWS(scannedJWS).then((decoded) => console.log(JSON.stringify(decoded, null, 2)));
},
function (e) {
console.log("Ooooh crap - this looks like a fake vacinnation proof");
}
); |
steven676
referenced
this issue
in steven676/shc-covid19-decoder
Jul 20, 2021
Node.js "helpfully" tries to reduce the amount of output when we pass the decoded object to console.log(), so we need to pretty-print it ourselves before displaying. Fixes #2.
steven676
referenced
this issue
in steven676/shc-covid19-decoder
Sep 13, 2021
Node.js "helpfully" tries to reduce the amount of output when we pass the decoded object to console.log(), so we need to pretty-print it ourselves before displaying. Fixes #2. (Thanks to Dave Hughes for the suggstion to use console.dir() to preserve the color-coding.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output currently looks like that when we decode from the command line:
The text was updated successfully, but these errors were encountered: