Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 20, 2024 via pnpm

mime-db 1.52.0

Media Type Database
Package summary
Share
0
issues
1
license
1
MIT
Package created
14 Aug 2014
Version published
21 Feb 2022
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
mime-db@1.52.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of mime-db 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does mime-db do?

Mime-db is an extensive database of MIME (Multipurpose Internet Mail Extensions) types along with valuable metadata about them. This JavaScript package does not entail any underlying logic, thereby making it as unbiased as possible with an API. It assembles data from prominent resources such as IANA, Apache, and Nginx, thereby making it a comprehensive source for MIME types information.

How do you use mime-db?

To use mime-db, you must first install the package via npm by using the npm install mime-db command in your terminal. Once installed, you can require the 'mime-db' module in your JavaScript file and access data related to specific MIME types. For example, to grab data on .js files, use the following JavaScript snippet:

var db = require('mime-db')
//grab data on .js files
var data = db['application/javascript']

This would extract data associated with the MIME type 'application/javascript' and store it in the variable 'data'.

Where are the mime-db docs?

The documentation for mime-db is located in the README file in the repository on GitHub. It details the usage, installation, data structure, and contribution guidelines. Since the JSON file provided by mime-db is a map lookup for lowercased mime types, you can get the payloads of specific MIME types including their source, known extensions, gzip compatibility, and any associated default charset. Additional information is also provided on how to contribute to this open-source project by adding custom media types.