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.202.0/http/user_agent.ts";

Properties

readonly
model: string | undefined

The model of a device as represented by a user agent string.

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

The type of device as represented by a user agent string.

readonly
vendor: string | undefined

The vendor of a device as represented by a user agent string.