The repository for high quality TypeScript type definitions.
Installations
npm install @types/hapi__mimos
Developer Guide
Typescript
Yes
Module System
N/A
Score
99.9
Supply Chain
93.3
Quality
75.4
Maintenance
100
Vulnerability
100
License
Contributors
Languages
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Developer
DefinitelyTyped
Download Statistics
Total Downloads
61,470,349
Last Day
74,717
Last Week
376,015
Last Month
1,248,032
Last Year
27,491,176
GitHub Statistics
49,058 Stars
88,531 Commits
30,280 Forks
640 Watching
5 Branches
9,977 Contributors
Package Meta Information
Latest Version
4.1.4
Package Id
@types/hapi__mimos@4.1.4
Size
2.30 kB
Publised On
06 Jul 2021
Total Downloads
Cumulative downloads
Total Downloads
61,470,349
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Installation
npm install --save @types/hapi__mimos
Summary
This package contains type definitions for @hapi/mimos (https://github.com/hapijs/mimos).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos.
index.d.ts
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
Additional Details
- Last updated: Tue, 06 Jul 2021 20:33:13 GMT
- Dependencies: @types/mime-db
- Global values: none
Credits
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
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
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
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:5
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:12
- Info: 20 out of 20 GitHub-owned GitHubAction dependencies pinned
- Info: 8 out of 8 third-party GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/UpdateCodeowners.yml:19
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ghostbuster.yml:20
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/support-window.yml:22
- Info: topLevel 'contents' permission set to 'read': .github/workflows/CI.yml:16
- Info: topLevel 'contents' permission set to 'read': .github/workflows/UpdateCodeowners.yml:14
- Warn: no topLevel permission defined: .github/workflows/format-and-commit.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/ghostbuster.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint-md.yml:7
- Warn: no topLevel permission defined: .github/workflows/pnpm-cache.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/support-window.yml:17
- Warn: no topLevel permission defined: .github/workflows/watchdog-publisher.yml:1
- Warn: no topLevel permission defined: .github/workflows/watchdog-typescript-bot.yml:1
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 27 are checked with a SAST tool
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
7
/10
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