Sitelet https://github.com/nodejs/node/issues/43155
Skip to content

Add navigator.userAgent  #43155

Description

@nissy-dev

What is the problem this feature will solve?

Cloudflare Workers and Deno has a navigator.userAgent API. If this API is implemented, Node.js improve compatibility with them and web.

Recently, WinterCG (W3C Community Group) was lanunched to promote runtimes supporting an unified API regardless of the runtime they are using: be it browsers, servers, embedded applications, or edge runtimes. The WinterCG's proposal also includes navigator.userAgent

If you are interested in implementing it, I would like to get started!

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

Implement gloalThis.navigator.userAgent. userAgent value is considered to be "Node.js ${version}" like Deno's implementation, but I hope we can discuss if this is appropriate.

What alternatives have you considered?

No response

Activity

  1. mscdex commented on May 20, 2022

    @mscdex
    Contributor

    This is probably better discussed in the existing thread here.

  2. Trott commented on May 20, 2022

    @Trott
    Member

    This is probably better discussed in the existing thread here.

    Closing in favor of that existing issue.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions