Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/user_agent.ts>Device

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface Device
import { type Device } from "https://deno.land/std@0.220.0/http/user_agent.ts";

The device as described by a user agent string.

Properties

readonly
model: string | undefined

The model of the device.

readonly
type:
| "console"
| "mobile"
| "table"
| "smartv"
| "wearable"
| "embedded"
| undefined

The type of device.

readonly
vendor: string | undefined

The vendor of the device.