Function lookup

  • Lookup of internet media type associated to a file.

    Parameters

    • fileStr: string

      file ext name or full file name: for example 'png' | 'sample.json'

    Returns string | undefined

    string | undefined - string is the expected content-type, undefined if file is not supported.

Generated using TypeDoc