豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
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