Skip to main content
deno.com

interface Navigator

Provides information about the Deno runtime environment and the system on which it's running. Similar to the browser Navigator object but adapted for the Deno context.

Examples #

#
// Check available CPU cores
console.log(`Available CPU cores: ${navigator.hardwareConcurrency}`);

// Check user agent
console.log(`User agent: ${navigator.userAgent}`);

// Check language settings
console.log(`Language: ${navigator.language}`);

Properties #

#gpu: GPU
readonly
#hardwareConcurrency: number
readonly
#userAgent: string
readonly
#language: string
readonly
#languages: string[]
readonly

variable Navigator

Constructor for Navigator objects.

Note: This constructor cannot be used to create new Navigator instances in Deno. The global navigator object is pre-defined in the runtime environment.

Properties #