Skip to main content
Module

x/oak/deps.ts>UserAgent#toJSON

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Go to Latest
method UserAgent.prototype.toJSON
import { UserAgent } from "https://deno.land/x/oak@v14.1.1/deps.ts";

Converts the current instance to a JSON representation.

Returns

{ browser: Browser; cpu: Cpu; device: Device; engine: Engine; os: Os; ua: string; }