Socket
Socket
Sign inDemoInstall

@tinyhttp/type-is

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/type-is - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

CHANGELOG.md

6

dist/index.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc