Gathering detailed insights and metrics for mimoza
Gathering detailed insights and metrics for mimoza
Gathering detailed insights and metrics for mimoza
Gathering detailed insights and metrics for mimoza
npm install mimoza
Typescript
Module System
NPM Version
JavaScript (98.56%)
Makefile (1.44%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
145 Commits
4 Forks
9 Watchers
2 Branches
14 Contributors
Updated on May 13, 2024
Latest Version
1.0.0
Package Id
mimoza@1.0.0
Size
41.06 kB
NPM Version
1.4.28
Published on
Feb 02, 2015
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is archived
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-07-07
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