Skip to content

Add a global Navigator object #39540

Closed as not planned
Closed as not planned
@jimmywarting

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions