
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
@types/mime-db
Advanced tools
TypeScript definitions for mime-db
npm install --save @types/mime-db
This package contains type definitions for mime-db (https://github.com/jshttp/mime-db).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime-db.
declare namespace database {
/**
* @see {@link https://github.com/jshttp/mime-db#data-structure}
*/
interface MimeEntry {
/**
* Where the mime type is defined.
* If not set, it's probably a custom media type.
*/
readonly source?: MimeSource | undefined;
/** Known extensions associated with this mime type. */
readonly extensions?: readonly string[] | undefined;
/** Whether a file of this type can be gzipped. */
readonly compressible?: boolean | undefined;
/** The default charset associated with this type, if any. */
readonly charset?: string | undefined;
}
/**
* @see {@link https://github.com/jshttp/mime-db#data-structure}
*/
interface MimeDatabase {
readonly [type: string]: MimeEntry;
}
/**
* Sources:
* http://www.iana.org/assignments/media-types/media-types.xhtml
* http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
* http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
*/
type MimeSource = "iana" | "apache" | "nginx";
}
declare const database: database.MimeDatabase;
export = database;
These definitions were written by AJP, Linus Unnebäck, and Piotr Błażejewicz.
FAQs
TypeScript definitions for mime-db
The npm package @types/mime-db receives a total of 380,293 weekly downloads. As such, @types/mime-db popularity was classified as popular.
We found that @types/mime-db demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.