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
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
42,997,176
Last Day
3,223
Last Week
103,828
Last Month
473,702
Last Year
5,884,494
NOASSERTION License
50,001 Stars
89,699 Commits
30,430 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 06, 2025
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
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
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 1 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
license file detected
Details
Reason
Found 25/29 approved changesets -- score normalized to 8
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-06-30
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 MoreLast Day
-15.3%
3,223
Compared to previous day
Last Week
-6.8%
103,828
Compared to previous week
Last Month
-7.2%
473,702
Compared to previous month
Last Year
-31.9%
5,884,494
Compared to previous year