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
Compact pino-based prettifier for fastify
npm install @mgcrea/pino-pretty-compact
Typescript
Module System
Node Version
NPM Version
72.2
Supply Chain
99.5
Quality
78
Maintenance
100
Vulnerability
100
License
TypeScript (92.99%)
JavaScript (7.01%)
Total Downloads
130,501
Last Day
68
Last Week
1,254
Last Month
4,603
Last Year
46,918
MIT License
18 Stars
87 Commits
3 Watchers
4 Branches
1 Contributors
Updated on May 30, 2025
Minified
Minified + Gzipped
Latest Version
1.4.2
Package Id
@mgcrea/pino-pretty-compact@1.4.2
Unpacked Size
89.01 kB
Size
9.98 kB
File Count
15
NPM Version
10.9.0
Node Version
22.11.0
Published on
Nov 14, 2024
Cumulative downloads
Total Downloads
Last Day
21.4%
68
Compared to previous day
Last Week
21.7%
1,254
Compared to previous week
Last Month
-15.8%
4,603
Compared to previous month
Last Year
16.5%
46,918
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 0/30 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 SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-09
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