This topic was automatically generated from Slack. You can find the original thread here.
Stefan Bohacek : Is there a way to pretty-print the output of each step, or perhaps this would be a feature request?
This topic was automatically generated from Slack. You can find the original thread here.
Stefan Bohacek : Is there a way to pretty-print the output of each step, or perhaps this would be a feature request?
Danny Roosevelt : You’ll want to either return
that data or you can use $.export(key,value)
as well Writing Node.js in Steps
Stefan Bohacek : Sorry, I meant in the interface, as per the screenshot. I think that might be useful as a feature. What I did was to just copy the output and clean it up in VS Code manually with line breaks.
Danny Roosevelt : Oh specifically for console log outputs? If you export or return the data well prettify it for you in the exports tab.
Dylan Sather (Pipedream) : Yes, I’d +1 using step exports, since you can copy the value from step exports — hover over any exported key and you’ll see the option to Copy Value.
You can also use JSON.stringify(your_value, null, 2)
to pretty print JSON-serializable data in logs
Stefan Bohacek : Got it, thank you both!