Gathering detailed insights and metrics for ultimate-expressjs
Gathering detailed insights and metrics for ultimate-expressjs
Gathering detailed insights and metrics for ultimate-expressjs
Gathering detailed insights and metrics for ultimate-expressjs
npm install ultimate-expressjs
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
17 Commits
2 Watchers
3 Branches
1 Contributors
Updated on Mar 04, 2023
Latest Version
1.5.0
Package Id
ultimate-expressjs@1.5.0
Unpacked Size
5.34 kB
Size
2.17 kB
File Count
3
NPM Version
6.13.1
Node Version
13.3.0
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
Tired of adding express, method-override, cors, compression, method-override etc. to all of your expressjs frameworks? Here is the solution:
1const http = require("ultimate-expressjs"); 2const express = new http({ port: 3000 }); 3 4express.setRoutes = app => { 5 app.get("/", () => req.json({ hello: "world" })); 6}; 7 8express.listen().then(() => console.info(`Server started`));
Pretty cool isn't it?
In order to set your own routes, use the exaple code
1express.setRoutes = app => { 2 // access your expressjs instance through app parameter. 3};
In order to have your own commands for error handling (if you don't want to use default Boom):
1express.setErrorHandlers = app => { 2 // access your expressjs instance through app parameter 3};
In order to use custom loggers as your default logger, please use the following code:
1const customLogger = error => { 2 // send data to anywhere you want. 3}; 4const express = new http({ port: PORT, logger: customLogger });
Just add limiterOptions
object to ultimate expressjs constructor. This object will be used inside express-rate-limit
. For more information about the object context, please refer to express-rate-limit
npm package documentation.
Example usage of Coralogix with Rate Limiter using Redis:
1const express = new http({ 2 port: process.env.PORT, 3 logger: expressLogger, 4 limiterOptions: { 5 store: new RedisStore({ 6 client: require("redis").createClient(process.env.REDIS_URL) 7 }), 8 max: 10, 9 delay: 0, 10 windowMs: 1 * 60 * 1000 11 }, 12 handler: (req, res, next) => { 13 suspiciousLogger.addLog( 14 new Coralogix.Log({ 15 severity: Coralogix.Severity.warning, 16 className: "index.js", 17 methodName: "rateLimiter", 18 text: { 19 message: `${req.headers["cf-connecting-ip"]} is sending too many requests`, 20 query: req.query 21 } 22 }) 23 ); 24 25 next(Boom.tooManyRequests("You have exceeded your rate limit.")); 26 } 27});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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