Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yurkimus/media-types
Listing of IANA Media Types
https://github.com/yurkimus/media-types
deno enumeration javascript listing media-types mime-types node
Last synced: 3 months ago
JSON representation
Listing of IANA Media Types
- Host: GitHub
- URL: https://github.com/yurkimus/media-types
- Owner: yurkimus
- License: mit
- Created: 2024-08-29T14:04:18.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-31T18:09:14.000Z (4 months ago)
- Last Synced: 2024-09-30T18:23:10.548Z (3 months ago)
- Topics: deno, enumeration, javascript, listing, media-types, mime-types, node
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Media Types Listing
Listing of IANA Media Types
All the types are coming from
[IANA/Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml)Last revision of the package (related to the document revision date above):
2024-08-19## Table of Contents
- [Installation](#installation)
- [Exports](#exports)
- [MediaTypes](#mediatypes)
- [License](#license)## 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 { => [] }
```#### Example:
```javascript
MediaTypes['mp4'] // => [ 'application/mp4', 'audio/mp4', 'video/mp4' ]
MediaTypes['plain'] // => [ 'text/plain' ]
```## License
[MIT](LICENSE)