Module

std/media_types/mod.ts>charset

Deno standard library
Go to Latest
function charset
import { charset } from "https://dotland.deno.dev/std@0.36.0/media_types/mod.ts";

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

Parameters

type: string

Returns

string | undefined