mime

  • Version 4.0.4
  • Published
  • 137 kB
  • No dependencies
  • MIT license

Install

npm i mime
yarn add mime
pnpm add mime

Overview

A comprehensive library for mime-type mapping

Index

Variables

variable _default

const _default: Mime;

    Classes

    class Mime

    class Mime {}

      constructor

      constructor(...args: TypeMap[]);

        method define

        define: (typeMap: TypeMap, force?: boolean) => this;

          method getAllExtensions

          getAllExtensions: (type: string) => Set<string> | null;

            method getExtension

            getExtension: (type: string) => string | null;

              method getType

              getType: (path: string) => string | null;

                Package Files (2)

                Dependencies (0)

                No dependencies.

                Dev Dependencies (12)

                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/mime.

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