Skip to content

Conversation

@mkantor
Copy link
Owner

@mkantor mkantor commented Dec 23, 2025

I had confused myself about why a trailing newline was necessary to see complete command-line output. It's due to an npm bug, not any behavior of Node itself, and as such ought to be worked around in the npm scripts.

However, whether this bug is present or not it's still good practice for most command outputs to end with a complete line (including \n), so all pretty-* notations have been updated to include a trailing newline.

In the future I may decide to add additional --output-formats which use non-pretty-* notations so that users can get non-\n-terminated outputs from the runtime, but for now there's nothing new here.

I had confused myself about why a trailing newline was necessary to see
complete command-line output. It's due to an [npm bug][0], not any
behavior of Node itself, and as such ought to be worked around in the
npm scripts.

However, whether this bug is present or not it's still good practice
for most command outputs to end with a complete line (including `\n`),
so all `pretty-*` notations have been updated to include a trailing
newline.

In the future I may decide to add additional `--output-format`s which
use non-`pretty-*` notations so that users can get non-`\n`-terminated
outputs from the runtime, but for now there's nothing new here.

[0]: npm/cli#8583
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.

2 participants