Skip to content

Use console.dir with options for complete output#15

Open
dlh3 wants to merge 1 commit intofproulx:mainfrom
dlh3:patch-1
Open

Use console.dir with options for complete output#15
dlh3 wants to merge 1 commit intofproulx:mainfrom
dlh3:patch-1

Conversation

@dlh3
Copy link
Copy Markdown

@dlh3 dlh3 commented Sep 8, 2021

This (using Node 10) wasn't logging the entire BC vax card object because it was too deeply nested for the default console.log() behaviour. Replacing .log(obj) with .dir(obj, options) prints the entire object.

Fixes #2.

This wasn't logging the entire BC vax card object because it was too deeply nested for the default `console.log()` behaviour.  Replacing `.log(obj)` with `.dir(obj, options)` prints the entire object.
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.

Arrays and Objects aren't properly displayed in JSON from terminal

1 participant