Skip to main content
Deno 2 is finally 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.28.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