@yurkimus/media-types
v0.0.8
Published
Listing of IANA Media Types
Downloads
7
Readme
Media Types Listing
Listing of IANA Media Types
All the types are coming from IANA/Media Types
Last revision of the package (related to the document revision date above): 2024-08-19
Table of Contents
Installation
npm
npm install @yurkimus/media-types
urls
"@yurkimus/media-types": "npm:@yurkimus/media-types"
"@yurkimus/media-types": "github:yurkimus/media-types"
"@yurkimus/media-types": "https://raw.githubusercontent.com/yurkimus/media-types/main/source/index.js"
Exports
MediaTypes
Definition:
MediaTypes :: Object { <name> => <media type>[] }
Example:
MediaTypes['mp4'] // => [ 'application/mp4', 'audio/mp4', 'video/mp4' ]
MediaTypes['plain'] // => [ 'text/plain' ]