Skip to main content
The Deno 2 Release Candidate is 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