Installations
npm install @nest-middlewares/cookie-parser
Score
77.6
Supply Chain
68.4
Quality
75.9
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Developer
wbhob
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
18.18.2
NPM Version
lerna/7.4.1/node@v18.18.2+arm64 (darwin)
Statistics
382 Stars
150 Commits
33 Forks
8 Watching
2 Branches
11 Contributors
Updated on 15 Nov 2024
Bundle Size
5.17 kB
Minified
2.05 kB
Minified + Gzipped
Languages
TypeScript (99.6%)
Shell (0.4%)
Total Downloads
Cumulative downloads
Total Downloads
1,979,556
Last day
18%
13,769
Compared to previous day
Last week
-7.2%
73,930
Compared to previous week
Last month
-52.7%
361,245
Compared to previous month
Last year
2,437.9%
1,688,991
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Nest Middlewares
Add the most common Express middlewares to your Nest app with one line.
System Requirements
This packages requires the following:
- Node.JS 12.0.0 or later
- @nestjs/core and @nestjs/common 9.0.0 or later
Adding Middlewares
Please do not open issues asking to support a middleware – I've tried to make this project really easy to implement and extend. See CONTRIBUTING.md for more information on how to create a new middleware, and I'll merge and release it if it meets the contributing guidelines. Thank you for your contribution.
Usage
Take the name of your favorite Express middleware and prefix it with @nest-middlewares/
.
$ npm install --save @nest-middlewares/helmet
In your module:
1import { HelmetMiddleware } from '@nest-middlewares/helmet'; // (look around in the source code for the exact class name) 2 3@Module(...) 4export class MyModule { 5 configure(consumer: MiddlewaresConsumer) { 6 // IMPORTANT! Call Middleware.configure BEFORE using it for routes 7 HelmetMiddleware.configure( /* options as per helmet docs */ ) 8 consumer.apply(HelmetMiddleware).forRoutes( 9 /* your routes */ 10 ); 11 } 12}
Currently supports:
- Compression
- Connect RID
- Connect Timeout
- Cookie Parser
- Cookie Session
- CORS
- Csurf
- Error Handler
- Helmet
- Method Override
- Morgan
- Response Time
- Serve Favicon
- Serve Index
- Serve Static
- VHost
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 2/11 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: npmCommand not pinned by hash: scripts/clean.sh:6
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 21 are checked with a SAST tool
Reason
16 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Score
1.7
/10
Last Scanned on 2024-11-18
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