(type: string)
| 1 | import * as mime from 'es-mime-types' |
| 2 | |
| 3 | export const normalizeType = (type: string) => |
| 4 | ~type.indexOf('/') ? acceptParams(type) : { value: mime.lookup(type), params: {} } |
| 5 | |
| 6 | export function acceptParams(str: string, index?: number) { |
| 7 | const parts = str.split(/ *; */) |
no test coverage detected