Gathering detailed insights and metrics for mimoza
Gathering detailed insights and metrics for mimoza
npm install mimoza
Typescript
Module System
NPM Version
82.7
Supply Chain
93.2
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (98.56%)
Makefile (1.44%)
Total Downloads
4,479,521
Last Day
596
Last Week
3,426
Last Month
9,861
Last Year
171,133
8 Stars
145 Commits
4 Forks
10 Watching
2 Branches
14 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
mimoza@1.0.0
Size
41.06 kB
NPM Version
1.4.28
Publised On
02 Feb 2015
Cumulative downloads
Total Downloads
Last day
-0.2%
596
Compared to previous day
Last week
16.8%
3,426
Compared to previous week
Last month
-21.5%
9,861
Compared to previous month
Last year
-48.8%
171,133
Compared to previous year
1
Mimoza is a tiny but comprehensive MIME tools library. Features:
See detailed API docs.
for node.js:
1npm install mimoza
for browser (AMD module):
1bower install mimoza
1var Mimoza = require('mimoza'); 2 3// Use builtin methods: 4 5Mimoza.getExtension('audio/ogg'); // -> '.oga' 6 7Mimoza.getMimeType('ogg'); // -> 'audio/ogg' 8Mimoza.getMimeType('.oga'); // -> 'audio/ogg' 9Mimoza.getMimeType('test.oga'); // -> 'audio/ogg' 10Mimoza.getMimeType('foo/bar.oga'); // -> 'audio/ogg' 11 12Mimoza.isCompressible('text/html'); // -> true 13Mimoza.isCompressible('application/octet-stream'); // -> false 14 15Mimoza.isText('text/html'); // -> true 16Mimoza.isText('application/javascript'); // -> true 17Mimoza.isText('application/json'); // -> true 18Mimoza.isText('application/octet-stream'); // -> false 19 20 21// Define your own instance 22 23var mime = new Mimoza({ 24 defaultType: 'hard/core', // mime type for unknown extentions 25 preloaded: true // load default rules 26}); 27 28// instances are customizeable 29mime.register('foo/bar', ['baz', 'moo']); 30 31mime.getExtension('foo/bar'); // -> '.baz' 32mime.getMimeType('baz'); // -> 'foo/bar' 33mime.getMimeType('moo'); // -> 'foo/bar' 34 35// unknown file types, with default & custom fallback 36mime.getMimeType('tada'); // -> 'hard/core' 37mime.getMimeType('tada', 'soft/core'); // -> 'soft/core'
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
project is archived
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-13
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