You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @clack/prompts package has both log and stream helpers, but the only difference is that stream accepts iterables and log accepts strings. Ideally these could be merged into a single API that handles both.
Another difference, log utilities assume that if message is an Array ten each element is a line (so it add \n at the end of each element).
But in stream every iteration is push to the current line (no \n is added)
Activity
MacFJA commentedon Apr 18, 2025
The main issue with the merge of
log
andstream
it's there is a signature change forlog
.It changes from a synchronous API to an asynchronous API
It's nothing big, but it introduces a breaking change
MacFJA commentedon Apr 18, 2025
Another difference,
log
utilities assume that ifmessage
is an Array ten each element is a line (so it add\n
at the end of each element).But in
stream
every iteration is push to the current line (no\n
is added)