Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method UserAgent.prototype.toJSON
import { UserAgent } from "https://deno.land/std@0.212.0/http/user_agent.ts";

Returns

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