Gathering detailed insights and metrics for @types/csurf
Gathering detailed insights and metrics for @types/csurf
Gathering detailed insights and metrics for @types/csurf
Gathering detailed insights and metrics for @types/csurf
The repository for high quality TypeScript type definitions.
npm install @types/csurf
Typescript
Module System
99.7
Supply Chain
75.3
Quality
76
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
49,713 Stars
89,368 Commits
30,384 Forks
640 Watchers
7 Branches
9,955 Contributors
Updated on May 12, 2025
Latest Version
1.11.5
Package Id
@types/csurf@1.11.5
Unpacked Size
4.13 kB
Size
1.83 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install --save @types/csurf
This package contains type definitions for csurf (https://www.npmjs.org/package/csurf).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/csurf.
1import express = require("express-serve-static-core"); 2 3declare global { 4 namespace Express { 5 interface Request { 6 csrfToken(): string; 7 } 8 } 9} 10 11declare function csurf(options?: { 12 value?: ((req: express.Request) => string) | undefined; 13 /** 14 * @default false 15 */ 16 cookie?: csurf.CookieOptions | boolean | undefined; 17 ignoreMethods?: string[] | undefined; 18 sessionKey?: string | undefined; 19}): express.RequestHandler; 20 21declare namespace csurf { 22 interface CookieOptions extends express.CookieOptions { 23 /** 24 * @default '_csrf' 25 */ 26 key?: string | undefined; 27 } 28} 29 30export = csurf; 31
These definitions were written by Hiroki Horiuchi, and Piotr Błażejewicz.
No vulnerabilities found.
Reason
all changesets reviewed
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
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-05
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