Gathering detailed insights and metrics for @types/express-ws-routes
Gathering detailed insights and metrics for @types/express-ws-routes
npm install @types/express-ws-routes
Typescript
Module System
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
20,016
Last Day
4
Last Week
37
Last Month
143
Last Year
4,309
49,094 Stars
88,626 Commits
30,291 Forks
640 Watching
5 Branches
9,977 Contributors
Latest Version
1.1.4
Package Id
@types/express-ws-routes@1.1.4
Unpacked Size
4.81 kB
Size
1.86 kB
File Count
5
Publised On
07 Nov 2023
Cumulative downloads
Total Downloads
Last day
100%
4
Compared to previous day
Last week
-28.8%
37
Compared to previous week
Last month
90.7%
143
Compared to previous month
Last year
2.9%
4,309
Compared to previous year
npm install --save @types/express-ws-routes
This package contains type definitions for express-ws-routes (https://github.com/amekkawi/express-ws-routes).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-ws-routes.
1import { Express as exExpress, NextFunction, Request } from "express"; 2import { Router as coreRouter } from "express-serve-static-core"; 3import { Server as httpServer } from "http"; 4import * as WebSocket from "ws"; 5 6declare function expressWsRoutes(): expressWsRoutes.Express; 7 8declare namespace expressWsRoutes { 9 interface ClientInfo { 10 origin: string; 11 secure: boolean; 12 req: Request; 13 } 14 type WebSocketHandler = (socket: WebSocket) => void; 15 type CbHandler = (connectHandler: WebSocketHandler | boolean) => void; 16 type WebSocketRouteHandler = (info: ClientInfo, cb: CbHandler, next: NextFunction) => void; 17 18 interface Server extends httpServer { 19 wsServer: WebSocket.Server; 20 } 21 22 interface Express extends exExpress { 23 websocket(route: string, handler: WebSocketRouteHandler): Express; 24 } 25 26 interface Router extends coreRouter { 27 websocket(route: string, handler: WebSocketRouteHandler): Router; 28 } 29} 30 31export = expressWsRoutes; 32
These definitions were written by Gregor Stamać.
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-27
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