import { UserAgent } from "https://deno.land/std@0.220.0/http/mod.ts";
A representation of user agent string, which can be used to determine environmental information represented by the string. All properties are determined lazily.
Properties
readonly
browser: BrowserThe name and version of the browser extracted from the user agent string.
readonly
cpu: CpuThe architecture of the CPU extracted from the user agent string.
readonly
device: DeviceThe model, type, and vendor of a device if present in a user agent string.
readonly
engine: EngineThe name and version of the browser engine in a user agent string.
readonly
os: OsThe name and version of the operating system in a user agent string.
Methods
Converts the current instance to a JSON representation.
toString(): string
Converts the current instance to a string.
[Symbol.for("Deno.customInspect")](inspect: (value: unknown) => string): string
Custom output for Deno.inspect
.
[Symbol.for("nodejs.util.inspect.custom")](): string
depth: number,
options: any,
inspect: (value: unknown, options?: unknown) => string,
Custom output for Node's
util.inspect
.