Skip to content

Add a global Navigator object #39540

Description

@jimmywarting

I think there is a bunch of interesting web related things on the navigator object itself that could fit into NodeJS and dose not require a UI.
Deno, Bun.js, Browser and all Worker threads has it. NodeJS is the only platform that lacks it

Things i find interesting to also have in a NodeJS environment is

  • geolocation
  • connection
  • hardwareConcurrency
  • platform
  • language
  • onLine
  • userAgentData
  • getBattery
  • getGamepads
  • vibrate
  • permissions
  • worker: implement Web Locks API #36502
  • usb
  • clipboard
  • storage + File System Access + estimates (whatwg/fs)
  • deviceMemory
  • presentation
  • bluetooth
  • userAgent

(not saying we should go ahead and implement all of this)
I think there should at least exist a global navigator object so ppl can at least polyfill missing features onto the global navigator

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.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions