Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add navigator.userAgent #43155

Closed
nissy-dev opened this issue May 20, 2022 · 2 comments
Closed

Add navigator.userAgent #43155

nissy-dev opened this issue May 20, 2022 · 2 comments
Labels
feature request Issues that request new features to be added to Node.js.

Comments

@nissy-dev
Copy link
Contributor

nissy-dev commented May 20, 2022

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

@nissy-dev nissy-dev added the feature request Issues that request new features to be added to Node.js. label May 20, 2022
@mscdex
Copy link
Contributor

mscdex commented May 20, 2022

This is probably better discussed in the existing thread here.

@Trott
Copy link
Member

Trott commented May 20, 2022

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
Labels
feature request Issues that request new features to be added to Node.js.
Projects
None yet
Development

No branches or pull requests

3 participants