Gathering detailed insights and metrics for @paulcbetts/mime-db
Gathering detailed insights and metrics for @paulcbetts/mime-db
npm install @paulcbetts/mime-db
Typescript
Module System
Min. Node Version
Node Version
NPM Version
79.9
Supply Chain
93.3
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
959,637
Last Day
1,172
Last Week
4,554
Last Month
16,567
Last Year
194,549
1,128 Stars
834 Commits
263 Forks
45 Watching
12 Branches
94 Contributors
Minified
Minified + Gzipped
Latest Version
1.22.4
Package Id
@paulcbetts/mime-db@1.22.4
Size
5.41 kB
NPM Version
3.8.5
Node Version
5.10.0
Cumulative downloads
Total Downloads
Last day
55.9%
1,172
Compared to previous day
Last week
8.1%
4,554
Compared to previous week
Last month
-5.3%
16,567
Compared to previous month
Last year
163.3%
194,549
Compared to previous year
This is a database of all mime types. It consists of a single, public JSON file and does not include any logic, allowing it to remain as un-opinionated as possible with an API. It aggregates data from the following sources:
1npm install mime-db
If you're crazy enough to use this in the browser, you can just grab the
JSON file using RawGit. It is recommended to replace
master
with a release tag as the
JSON format may change in the future.
https://cdn.rawgit.com/jshttp/mime-db/master/db.json
1var db = require('mime-db'); 2 3// grab data on .js files 4var data = db['application/javascript'];
The JSON file is a map lookup for lowercased mime types. Each mime type has the following properties:
.source
- where the mime type is defined.
If not set, it's probably a custom media type.
apache
- Apache common media typesiana
- IANA-defined media typesnginx
- nginx media types.extensions[]
- known extensions associated with this mime type..compressible
- whether a file of this type can be gzipped..charset
- the default charset associated with this type, if any.If unknown, every property could be undefined
.
To edit the database, only make PRs against src/custom.json
or
src/custom-suffix.json
.
To update the build, run npm run build
.
The best way to get new media types included in this library is to register them with the IANA. The community registration procedure is outlined in RFC 6838 section 5. Types registered with the IANA are automatically pulled into this library.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
project has 18 contributing companies or organizations
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
5 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 7
Reason
6 out of 12 merged PRs checked by a CI test -- score normalized to 5
Reason
security policy file detected
Details
Reason
Found 11/29 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no update tool detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Score
Last Scanned on 2025-01-20T21:24:11Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More