Function extensionToMime

  • Change extension to according mimetype using ext=>mimetype map

    Returns

    string|boolean

    Parameters

    • ext: string

      string

    Returns string