@maschinenlesbar.org/ckan-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 (csv and CSV are one), 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, an unknown MIME type, a combined value ("Shape, CSV"), a word like "Download".

      Parameters

      • raw: unknown

      Returns string | undefined