Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/std/media_types/mod.ts>charset

A modern runtime for JavaScript and TypeScript.
Go to Latest
function charset
import { charset } from "https://deno.land/x/deno@v0.22.0/std/media_types/mod.ts";

Given a media type return any default charset string. Returns undefined if not resolvable.

Parameters

type: string

Returns

string | undefined