Gathering detailed insights and metrics for @types/hapi__mimos
Gathering detailed insights and metrics for @types/hapi__mimos
The repository for high quality TypeScript type definitions.
npm install @types/hapi__mimos
Typescript
Module System
99.9
Supply Chain
93.3
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
61,470,349
Last Day
74,717
Last Week
376,015
Last Month
1,248,032
Last Year
27,491,176
49,058 Stars
88,531 Commits
30,280 Forks
640 Watching
5 Branches
9,977 Contributors
Latest Version
4.1.4
Package Id
@types/hapi__mimos@4.1.4
Size
2.30 kB
Publised On
06 Jul 2021
Cumulative downloads
Total Downloads
Last day
-0.3%
74,717
Compared to previous day
Last week
-0.1%
376,015
Compared to previous week
Last month
-25.3%
1,248,032
Compared to previous month
Last year
28.7%
27,491,176
Compared to previous year
1
npm install --save @types/hapi__mimos
This package contains type definitions for @hapi/mimos (https://github.com/hapijs/mimos).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos.
1// Type definitions for @hapi/mimos 4.1 2// Project: https://github.com/hapijs/mimos 3// Definitions by: AJP <https://github.com/AJamesPhillips> 4// Silas Rech <https://github.com/lenovouser> 5// Linus Unnebäck <https://github.com/LinusU> 6// Piotr Błażejewicz <https://github.com/peterblazejewicz> 7// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 8 9import { MimeEntry } from 'mime-db'; 10 11declare namespace Mimos { 12 /** 13 * 14 * @see {@link https://github.com/hapijs/mimos#new-mimosoptions} 15 */ 16 interface MimosOptions { 17 /** 18 * an object hash that is merged into the built in mime information specified here {@link https://github.com/jshttp/mime-db}. 19 * Each key value pair represents a single mime object. 20 * Each override value should follow this schema: 21 * * the key is the lower-cased correct mime-type. (Ex. "application/javascript"). 22 * * the value should an object @see MimosOptionsValue 23 */ 24 override: { 25 [type: string]: MimosOptionsValue & { 26 /** 27 * Method with signature function(mime) when this mime type is found in the database, 28 * this function will run. This allows you make customizations to mime based on developer criteria. 29 */ 30 predicate?: (( 31 mime: MimosOptionsValue & { 32 [key: string]: any; 33 }, 34 ) => MimosOptionsValue & { 35 [key: string]: any; 36 }) | undefined; 37 }; 38 }; 39 } 40 41 interface MimosOptionsValue extends MimeEntry { 42 /** 43 * Specify the type value of result objects, defaults to key. 44 */ 45 type?: string | undefined; 46 } 47} 48 49declare class Mimos { 50 /** 51 * Creates a new Mimos object. 52 */ 53 constructor(options?: Mimos.MimosOptions); 54 /** 55 * Returns mime object 56 */ 57 path(path: string): Mimos.MimosOptionsValue; 58 /** 59 * Returns mime object 60 */ 61 type(type: string): MimeEntry; 62} 63 64export = Mimos; 65
These definitions were written by AJP, Silas Rech, Linus Unnebäck, and Piotr Błażejewicz.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-01-20
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