Gathering detailed insights and metrics for @types/supertest-as-promised
Gathering detailed insights and metrics for @types/supertest-as-promised
Gathering detailed insights and metrics for @types/supertest-as-promised
Gathering detailed insights and metrics for @types/supertest-as-promised
The repository for high quality TypeScript type definitions.
npm install @types/supertest-as-promised
Typescript
Module System
91.9
Supply Chain
80.4
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
2,698,136
Last Day
2,356
Last Week
15,048
Last Month
65,193
Last Year
907,779
NOASSERTION License
49,824 Stars
89,470 Commits
30,393 Forks
640 Watchers
6 Branches
9,958 Contributors
Updated on May 30, 2025
Latest Version
2.0.42
Package Id
@types/supertest-as-promised@2.0.42
Unpacked Size
5.67 kB
Size
1.94 kB
File Count
5
Published on
Dec 21, 2023
Cumulative downloads
Total Downloads
Last Day
-20.2%
2,356
Compared to previous day
Last Week
-5.4%
15,048
Compared to previous week
Last Month
-18.7%
65,193
Compared to previous month
Last Year
32.6%
907,779
Compared to previous year
3
npm install --save @types/supertest-as-promised
This package contains type definitions for supertest-as-promised (https://github.com/WhoopInc/supertest-as-promised).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/supertest-as-promised.
1import * as PromiseBluebird from "bluebird"; 2import supertest = require("supertest"); 3import { Server } from "tls"; 4 5declare function supertestAsPromised(app: any): supertestAsPromised.SuperTest; 6 7declare namespace supertestAsPromised { 8 interface Request extends supertest.Request { 9 } 10 11 interface Response extends supertest.Response { 12 } 13 14 type CallbackHandler = (err: any, res: Response) => void; 15 16 interface Test extends supertest.Request { 17 toPromise(): PromiseBluebird<Response & Test>; 18 timeout(): Promise<Response> & this; 19 end(callback?: CallbackHandler): this; 20 app: Server; 21 url: string; 22 23 serverAddress(app: Server, path: string): string; 24 25 expect(status: number, callback?: CallbackHandler): this; 26 expect(status: number, body: any, callback?: CallbackHandler): this; 27 expect(checker: (res: Response) => any, callback?: CallbackHandler): this; 28 expect(body: string, callback?: CallbackHandler): this; 29 expect(body: RegExp, callback?: CallbackHandler): this; 30 expect(body: object, callback?: CallbackHandler): this; 31 expect(field: string, val: string, callback?: CallbackHandler): this; 32 expect(field: string, val: RegExp, callback?: CallbackHandler): this; 33 } 34 35 function agent(app?: any): SuperTest; 36 37 interface SuperTest extends supertest.SuperTest<Test> { 38 } 39} 40export = supertestAsPromised; 41
These definitions were written by Tanguy Krotoff.
No vulnerabilities found.
Reason
30 commit(s) and 0 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-05-26
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