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 '@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.

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

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.