@types/mime-db

  • Version 1.43.5
  • Published
  • 5.36 kB
  • No dependencies
  • MIT license

Install

npm i @types/mime-db
yarn add @types/mime-db
pnpm add @types/mime-db

Overview

TypeScript definitions for mime-db

Index

Variables

variable database

const database: database.MimeDatabase;

    Interfaces

    interface MimeDatabase

    interface MimeDatabase {}

    index signature

    readonly [type: string]: MimeEntry;

      interface MimeEntry

      interface MimeEntry {}

      property charset

      readonly charset?: string | undefined;
      • The default charset associated with this type, if any.

      property compressible

      readonly compressible?: boolean | undefined;
      • Whether a file of this type can be gzipped.

      property extensions

      readonly extensions?: readonly string[] | undefined;
      • Known extensions associated with this mime type.

      property source

      readonly source?: MimeSource | undefined;
      • Where the mime type is defined. If not set, it's probably a custom media type.

      Type Aliases

      type MimeSource

      type MimeSource = 'iana' | 'apache' | 'nginx';
      • Sources: http://www.iana.org/assignments/media-types/media-types.xhtml http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types http://hg.nginx.org/nginx/raw-file/default/conf/mime.types

      Package Files (1)

      Dependencies (0)

      No dependencies.

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/mime-db.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/mime-db)
      • HTML
        <a href="https://www.jsdocs.io/package/@types/mime-db"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>