Gathering detailed insights and metrics for nestjs-flub
Gathering detailed insights and metrics for nestjs-flub
Gathering detailed insights and metrics for nestjs-flub
Gathering detailed insights and metrics for nestjs-flub
npm install nestjs-flub
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
250 Stars
76 Commits
17 Forks
6 Watching
27 Branches
10 Contributors
Updated on 25 Oct 2024
Mustache (89.44%)
TypeScript (10.56%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
75%
28
Compared to previous week
Last month
-56.4%
103
Compared to previous month
Last year
42.2%
12,748
Compared to previous year
Pretty ErrorHandler 😫, Stack Viewer for Nestjs Framework 🛠️
it's just a simple
Filter
for Catching the Errors
HTML reporter
JSON reporter, if request accepts a json instead of text/html.
Sorted frames of error stack.
Themes
1npm install nestjs-flub --save
Just add this filter as you would any filter:
1import { FlubErrorHandler } from 'nestjs-flub'; 2@Controller('cats') 3@UseFilters(new FlubErrorHandler()) 4export class CatsController { 5 6@Get('/error') 7 throwError() { 8 throw new Error('Very Bad Error'); 9 } 10} 11
FlubErrorHandler accepts an optional object to configure the Error Handler. For now, it only has two Options:
1theme: string; // for themes ['dark', 'light', 'default'] 2quote: boolean; // for displaying very good quotes
example
1@UseFilters(new FlubErrorHandler({ theme: 'dark', quote:true }))
copy /src/themes/error.default.mustache
and play
You are welcome to contribute to this project. If you want to add new themes, make a new PR containing the theme and a simple image to represent it
Use flub error handler for all controllers
1async function bootstrap() { 2 const app = await NestFactory.create(ApplicationModule); 3 app.useGlobalFilters(new FlubErrorHandler()); 4 await app.listen(3000); 5} 6bootstrap();
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/12 approved changesets -- score normalized to 5
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
72 existing vulnerabilities detected
Details
Score
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@fluid-tools/build-cli
Build tools for the Fluid Framework
@nestjs/mapped-types
Nest - modern, fast, powerful node.js web framework (@mapped-types)
@opentelemetry/instrumentation-nestjs-core
OpenTelemetry instrumentation for NestJS server side applications framework
nestjs-pino
Pino logger for NestJS