MIMEType

constructor(input: String)(source)
constructor(input: MIMETypeInput)(source)

Creates a new MIMEType object by parsing the input.

A TypeError will be thrown if the input is not a valid MIME. Note that an effort will be made to coerce the given values into strings.

Parameters

input

The input MIME to parse.