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

JSON.Stringify object output? #9

Open
evilC opened this issue Apr 4, 2022 · 1 comment
Open

JSON.Stringify object output? #9

evilC opened this issue Apr 4, 2022 · 1 comment

Comments

@evilC
Copy link

evilC commented Apr 4, 2022

Could you possibly add an option to check if the return value is an object, and if so, JSON.stringify it? (Ideally have a way to set stringify options too - eg allow pretty printing)
As it stands, if the return value is an object, it only shallow prints it, so I just get a bunch of [Object]

@whaaaley
Copy link

whaaaley commented Jan 27, 2023

I agree. Though I would call it --inspect and it would use node's inspect util.

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

2 participants