Skip to main content
Module

x/type_is/deps.ts>lookup

Infer the content-type of a HTTP Header for Deno
Latest
function lookup
import { lookup } from "https://deno.land/x/type_is@1.0.3/deps.ts";

Given an extension, lookup the appropriate media type for that extension. Likely you should be using contentType() though instead.

Parameters

path: string

Returns

string | undefined