Gathering detailed insights and metrics for @mgcrea/pino-pretty-compact
Gathering detailed insights and metrics for @mgcrea/pino-pretty-compact
Gathering detailed insights and metrics for @mgcrea/pino-pretty-compact
Gathering detailed insights and metrics for @mgcrea/pino-pretty-compact
pino-pretty
Prettifier for Pino log lines
@mgcrea/fastify-request-logger
Compact request logger plugin for fastify written in TypeScript
pino
super fast, all natural json logger
json-stringify-pretty-compact
The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.
npm install @mgcrea/pino-pretty-compact
62.6
Supply Chain
99.5
Quality
86.3
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
16 Stars
87 Commits
3 Watching
4 Branches
1 Contributors
Updated on 14 Nov 2024
TypeScript (92.99%)
JavaScript (7.01%)
Cumulative downloads
Total Downloads
Last day
-53.6%
104
Compared to previous day
Last week
-12.5%
1,031
Compared to previous week
Last month
20.5%
4,288
Compared to previous month
Last year
-16.4%
33,300
Compared to previous year
2
Compact pino-based prettifier for fastify.
Relies on kolorist for the coloring.
Usually used along @mgcrea/fastify-request-logger to log requests.
Built with TypeScript for static type checking with exported types along the library.
1npm install @mgcrea/pino-pretty-compact @mgcrea/fastify-request-logger --save 2# or 3pnpm add @mgcrea/pino-pretty-compact @mgcrea/fastify-request-logger
1import createFastify, { FastifyInstance, FastifyServerOptions } from "fastify"; 2import fastifyRequestLogger from "@mgcrea/fastify-request-logger"; 3import prettifier from "@mgcrea/pino-pretty-compact"; 4 5export const buildFastify = (options: FastifyServerOptions = {}): FastifyInstance => { 6 const fastify = createFastify({ 7 logger: { 8 level: "debug", 9 transport: { 10 target: "@mgcrea/pino-pretty-compact", 11 options: { 12 translateTime: "HH:MM:ss Z", 13 ignore: "pid,hostname", 14 }, 15 }, 16 }, 17 ...options, 18 }); 19 20 fastify.register(fastifyRequestLogger); 21 22 return fastify; 23};
You can use any PinoPrettyOptions
Heavily inspired from
1The MIT License 2 3Copyright (c) 2020 Olivier Louvignes <olivier@mgcrea.io> 4 5Permission is hereby granted, free of charge, to any person obtaining a copy 6of this software and associated documentation files (the "Software"), to deal 7in the Software without restriction, including without limitation the rights 8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9copies of the Software, and to permit persons to whom the Software is 10furnished to do so, subject to the following conditions: 11 12The above copyright notice and this permission notice shall be included in 13all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21THE SOFTWARE.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8
Reason
4 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
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