Skip to content

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 '@facturometro/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. @facturometro/core/codelists and @facturometro/einvoice/codelists re-export them together with every other list.

CodeName
text/csvtext/csv
application/pdfapplication/pdf
image/pngimage/png
image/jpegimage/jpeg
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.oasis.opendocument.spreadsheetapplication/vnd.oasis.opendocument.spreadsheet

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.