Skip to main content
Module

std/media_types/mod.ts>charset

Deno standard library
Go to Latest
function charset
import { charset } from "https://deno.land/std@0.34.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