@types/mime-types
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Installation

npm install --save @types/mime-types

Summary

This package contains type definitions for mime-types (https://github.com/jshttp/mime-types#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-types.

export function lookup(filenameOrExt: string): string | false;

export function contentType(filenameOrExt: string): string | false;

export function extension(typeString: string): string | false;

export function charset(typeString: string): string | false;

export namespace charsets {
    const lookup: typeof charset;
}

export const types: { [key: string]: string };

export const extensions: { [key: string]: string[] };

Additional Details

  • Last updated: Sat, 07 Jun 2025 02:15:25 GMT
  • Dependencies: none

Credits

These definitions were written by Gyusun Yeom, and Sebastian Beltran.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mime-types

Weekly Downloads

2,965,826

Version

3.0.1

License

MIT

Unpacked Size

3.64 kB

Total Files

5

Last publish

Collaborators

  • types