Skip to content

Proposal: add a console.write method #10119

Closed
@samerbuna

Description

@samerbuna

Often, I find myself needing to console.log a string without a new line and I use process.stdout.write for that, but it would be cool if we can just use the global console object for that with all the extra features it supports (like printf, multiple args, etc..), and to make it so that when we have a custom console object, we'll get an output-without-a-new-line method on that as well.

Maybe console.write()? I think that matches the feature on other platforms.

Happy to implement if you think this is a good idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    consoleIssues and PRs related to the console subsystem.feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions