Mime code (subset of IANA code list)
MimeCode, version 1.0, published by IANA: 6 codes. Specification page.
ts
import { isMimeCode, MIME_CODES, mimeCodeList } from '@einvoice-ts/core/codelists/mime';MIME_CODES holds the codes, MimeCode is their union type, isMimeCode() narrows a string to it and mimeCodeList is the list as data. @einvoice-ts/core/codelists and einvoice-ts/codelists re-export them together with every other list.
| Code | Name |
|---|---|
application/pdf | application/pdf |
application/vnd.oasis.opendocument.spreadsheet | application/vnd.oasis.opendocument.spreadsheet |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
image/jpeg | image/jpeg |
image/png | image/png |
text/csv | text/csv |