Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/abc/util.ts>contentType

A better Deno framework to create web application.
Go to Latest
function contentType
import { contentType } from "https://deno.land/x/abc@v1.3.1/util.ts";

Returns the content-type based on the extension of a path.

Parameters

filepath: string

Returns

string | undefined