JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2364
  • Score
    100M100P100Q121732F
  • License Apache-2.0

Simple extension to mime-type

Package Exports

  • get-mime-type
  • get-mime-type/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-mime-type) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-mime-type

Get a mime-type from a filename or extension with no fuzz.

npm install get-mime-type

API

mime = getMimeType(name, charset = true)

Get a mime / content type for a name or extension. If charset is true (default) it adds the charset for known extensions

License

Apache 2.0