
Research
Security News
Malicious npm Packages Use Telegram to Exfiltrate BullX Credentials
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
@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 391,889 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.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.