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

std/http/mod.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/mod.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.