@tinyhttp/type-is
Advanced tools
Comparing version 0.0.0 to 0.0.1
import { lookup } from 'es-mime-types'; | ||
import { format, parse } from 'media-typer'; | ||
import typer from 'media-typer'; | ||
function normalizeType(value) { | ||
// parse the type | ||
const type = parse(value); | ||
const type = typer.parse(value); | ||
// reformat it | ||
return format(type); | ||
return typer.format(type); | ||
} | ||
@@ -10,0 +10,0 @@ function tryNormalizeType(value) { |
{ | ||
"name": "@tinyhttp/type-is", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "TypeScript rewrite of type-is with CJS and ESM targets", |
import * as mime from 'es-mime-types' | ||
import * as typer from 'media-typer' | ||
import typer from 'media-typer' | ||
@@ -4,0 +4,0 @@ function normalizeType(value: string) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10176
9
278