Skip to content

Provide a process.setTitle() function #62797

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions