function getCharsetimport { getCharset } from "https://dotland.deno.dev/std@0.181.0/media_types/mod.ts"; getCharset(type: string): string | undefinedGiven a media type or header value, identify the encoding charset. If the charset cannot be determined, the function returns undefined. ExamplesExample 1 import { getCharset } from "https://deno.land/std@0.181.0/media_types/get_charset.ts"; getCharset("text/plain"); // `UTF-8` getCharset("application/foo"); // undefined getCharset("application/news-checkgroups"); // `US-ASCII` getCharset("application/news-checkgroups; charset=UTF-8"); // `UTF-8` Parameterstype: stringReturnsstring | undefinedimport getCharsetimport { getCharset } from "https://dotland.deno.dev/std@0.181.0/media_types/mod.ts";