Socket
Socket
Sign inDemoInstall

@types/mime

Package Overview
Dependencies
0
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.29 to 1.3.0

mime/LICENSE

17

mime/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for mime
// Type definitions for mime 1.3
// Project: https://github.com/broofa/node-mime

@@ -8,13 +8,14 @@ // Definitions by: Jeff Goddard <https://github.com/jedigo>

export as namespace mime;
export declare function lookup(path: string): string;
export declare function extension(mime: string): string;
export declare function load(filepath: string): void;
export declare function define(mimes: Object): void;
export function lookup(path: string, fallback: string): string;
export function extension(mime: string): string;
export function load(filepath: string): void;
export function define(mimes: { [key: string]: any }): void;
interface Charsets {
export interface Charsets {
lookup(mime: string): string;
}
export declare var charsets: Charsets;
export declare var default_type: string;
export const charsets: Charsets;
export const default_type: string;
{
"name": "@types/mime",
"version": "0.0.29",
"version": "1.3.0",
"description": "TypeScript definitions for mime",
"license": "MIT",
"author": "Jeff Goddard <https://github.com/jedigo>",
"contributors": [
{
"name": "Jeff Goddard",
"url": "https://github.com/jedigo"
}
],
"main": "",

@@ -14,4 +19,5 @@ "repository": {

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "3ffa4132b090a4f452c7f9ad0263fda5008be71108fe473635886dc8d1437b58"
"peerDependencies": {},
"typesPublisherContentHash": "6a2b3d2dd50108712f2c91ef37eb70d024362cfaaf20a46325083ac27ec9a7c6",
"typeScriptVersion": "2.0"
}

@@ -8,12 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/mime
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Global values: none
* Last updated: Thu, 15 Jun 2017 22:02:56 GMT
* Dependencies: none
* Global values: mime
# Credits
These definitions were written by Jeff Goddard <https://github.com/jedigo>.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc