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

x/fileserver/src/util.ts>fileType

A file-server command.
Latest
function fileType
import { fileType } from "https://deno.land/x/fileserver@1.1.19/src/util.ts";

Get the content type of a file.

Parameters

path: string

Path to the file.

Returns

string