@maschinenlesbar.org/govdata-cli
    Preparing search index...

    Function formatOf

    • A format value as one short name: the EU URI's tail (…/file-type/CSV is CSV), upper case, the EU _SRVC suffix dropped (WMS_SRVC is WMS), free-text and MIME spellings mapped (Shapefiles is SHP, text/csv is CSV). Undefined for a value that names no clear format: another vocabulary's URI (…file_media_type#ANY_OTHER_MEDIATYPE), an unknown MIME type, a combined value ("Shape, CSV"), a word like "Download".

      Parameters

      • raw: unknown

      Returns string | undefined