问题
I am using meteor shell, however, it seems to hide certain details, making it a pain to inspect.
> Meteor.users.find().fetch()
{
"_id": "someidgoeshere",
"emails": [ [Object] ],
"profile": {},
"services": [ [Object] ]
}
I looked into the source and found a REPL, checked the .help
prompt. I looked in the documentation and didn't even find "shell" listed in the CLI.
Is there a way to run Meteor shell with some sort of verbose option, such that it displays ALL the json?
回答1:
Well, if you want to display all the data as JSON, there's a simple trick:
JSON.stringify(Meteor.users.find().fetch());
You will lose syntax colouration and functions though. I'm looking forward to a way to do it with the shell itself!
来源:https://stackoverflow.com/questions/30783918/how-do-i-get-meteor-shell-output-to-be-more-verbose