Skip to content

Provide a process.setTitle() function #62797

@silverwind

Description

@silverwind

What is the problem this feature will solve?

The process title can only be set via proccess.title. Problems with it:

  • Setter APIs like it are weird and legacy, it's a side-effect that may look like a code smell
  • Doesn't work with destructuring, setter is not triggered:
    import {title} from "node:process";
    title = "title";

What is the feature you are proposing to solve the problem?

import {setTitle} from "node:process";
setTitle("title");

What alternatives have you considered?

None available

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions