Gathering detailed insights and metrics for @types/koa-send
Gathering detailed insights and metrics for @types/koa-send
Gathering detailed insights and metrics for @types/koa-send
Gathering detailed insights and metrics for @types/koa-send
The repository for high quality TypeScript type definitions.
npm install @types/koa-send
Typescript
Module System
99.6
Supply Chain
77
Quality
75.6
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
40,456,747
Last Day
7,260
Last Week
47,958
Last Month
404,411
Last Year
6,548,107
48,927 Stars
88,342 Commits
30,215 Forks
641 Watching
5 Branches
9,977 Contributors
Latest Version
4.1.6
Package Id
@types/koa-send@4.1.6
Unpacked Size
6.65 kB
Size
2.25 kB
File Count
5
Publised On
07 Nov 2023
Cumulative downloads
Total Downloads
Last day
-52.1%
7,260
Compared to previous day
Last week
-55.8%
47,958
Compared to previous week
Last month
-20.8%
404,411
Compared to previous month
Last year
-26.2%
6,548,107
Compared to previous year
1
npm install --save @types/koa-send
This package contains type definitions for koa-send (https://github.com/koajs/send).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-send.
1import { ParameterizedContext } from "koa"; 2 3import { Stats } from "fs"; 4 5declare function send(ctx: ParameterizedContext, path: string, opts?: send.SendOptions): Promise<string>; 6 7declare namespace send { 8 type SetHeaders = (res: ParameterizedContext["res"], path: string, stats: Stats) => any; 9 10 interface SendOptions { 11 /** Browser cache max-age in milliseconds. (defaults to 0) */ 12 maxage?: number | undefined; 13 maxAge?: SendOptions["maxage"] | undefined; 14 /** Tell the browser the resource is immutable and can be cached indefinitely. (defaults to false) */ 15 immutable?: boolean | undefined; 16 /** Allow transfer of hidden files. (defaults to false) */ 17 hidden?: boolean | undefined; 18 /** Root directory to restrict file access. (defaults to '') */ 19 root?: string | undefined; 20 /** Name of the index file to serve automatically when visiting the root location. (defaults to none) */ 21 index?: string | false | undefined; 22 /** Try to serve the gzipped version of a file automatically when gzip is supported by a client and if the requested file with .gz extension exists. (defaults to true). */ 23 gzip?: boolean | undefined; 24 /** Try to serve the brotli version of a file automatically when brotli is supported by a client and if the requested file with .br extension exists. (defaults to true). */ 25 brotli?: boolean | undefined; 26 /** If not false (defaults to true), format the path to serve static file servers and not require a trailing slash for directories, so that you can do both /directory and /directory/. */ 27 format?: boolean | undefined; 28 /** Function to set custom headers on response. */ 29 setHeaders?: SetHeaders | undefined; 30 /** Try to match extensions from passed array to search for file when no extension is sufficed in URL. First found is served. (defaults to false) */ 31 extensions?: string[] | false | undefined; 32 } 33} 34 35export = send; 36
These definitions were written by Peter Safranek, and Tomek Ĺaziuk.
No vulnerabilities found.
Reason
30 commit(s) and 5 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 2024-12-23
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