Gathering detailed insights and metrics for emailjs-mime-types
Gathering detailed insights and metrics for emailjs-mime-types
Gathering detailed insights and metrics for emailjs-mime-types
Gathering detailed insights and metrics for emailjs-mime-types
Convert extensions to Content-Type values and vice versa
npm install emailjs-mime-types
Typescript
Module System
Node Version
NPM Version
91.6
Supply Chain
90.7
Quality
78.9
Maintenance
100
Vulnerability
100
License
JavaScript (99.8%)
Shell (0.2%)
Total Downloads
755,143
Last Day
420
Last Week
9,842
Last Month
45,245
Last Year
311,130
MIT License
5 Stars
36 Commits
5 Forks
1 Watchers
1 Branches
5 Contributors
Updated on Jun 10, 2019
Minified
Minified + Gzipped
Latest Version
2.1.0
Package Id
emailjs-mime-types@2.1.0
Size
96.47 kB
NPM Version
6.4.1
Node Version
8.15.0
Published on
Mar 12, 2019
Cumulative downloads
Total Downloads
Last Day
33.8%
420
Compared to previous day
Last Week
-31.3%
9,842
Compared to previous week
Last Month
10%
45,245
Compared to previous month
Last Year
261.6%
311,130
Compared to previous year
7
emailjs-mime-types
allows you to detect file extensions for content types and vice-versa.
1npm install --save emailjs-mime-types
1import { detectExtension, detectMimeType } from 'emailjs-mime-types'
Returns file extension for a content type string. If no suitable extensions are found, 'bin' is used as the default extension.
mimetypes.detectExtension(mimeType: String, [favoredExtension: String]) -> String
For example:
mimetypes.detectExtension('image/jpeg') // returns 'jpeg'
mimetypes.detectExtension('image/jpeg', 'jpg') // returns 'jpg'
mimetypes.detectExtension('image/jpeg', 'txt') // returns 'jpeg'
Returns content type for a file extension. If no suitable content types are found, 'application/octet-stream' is used as the default content type
mimetypes.detectMimeType(extension: String) -> String
For example:
mimetypes.detectExtension('jpeg') // returns 'image/jpeg'
Copyright (c) 2013 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/19 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
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