Socket
Socket
Sign inDemoInstall

pino-tiny

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-tiny - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "pino-tiny",
"version": "0.1.0",
"version": "0.1.1",
"description": "a very minimalistic output for pino logger",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -7,4 +7,6 @@ # pino-tiny

...but is does some weird black box stuff and i did not like some of the formatting and i was generally not too happy about so i made pino-tiny.
...but is does some weird black box stuff, and i did not like some of the formatting, and i was generally not too happy about certain things, so...
i made pino-tiny!
![screen-shot](./screen-shot.jpg)

@@ -14,3 +16,3 @@

pino-tiny is ran like any other pino output mangler, you run it as a process and pipe to it. first you need to install it. it's really not meant to be a production log, so install it in your project as a dev-dependency.
pino-tiny is ran like any other pino output mangler, you run it as a process and pipe to it. first you need to install it. it's really not meant to be a production log formatter, so prolly install it in your project as a dev-dependency.

@@ -21,3 +23,3 @@ ```bash

...run it...
...run it with your application that is already using [pino](https://github.com/pinojs/pino) to log stuff...

@@ -44,5 +46,5 @@ ```bash

* timestamps (no dates). you know what day it is but millisecond timestamps give you some performace output
* strips all but the msg for output (special cases)
* if there is a res and a req in the log data it will put dimmed req and res info (method, url, status code)
* non-json string that get piped in (like nodemon) get treated as info logs and outputted.
* strips all but the msg for output (with some special cases below)
* if there is are `res` and `req` properties in the log data, it will put dimmed request and response info (method, url, status code).
* non-json string data that get piped in (like nodemon) get treated as info logs and outputted.
* does not swallow error messages

@@ -53,5 +55,5 @@ * is extensible(ish)

pino-tiny runs like a process you pipe the output of your application into and it makes nice output. it also exports a module, that returns a start method you can pass a filter method into it.
pino-tiny runs like a process you pipe the output of your application into and it makes nice output. it also exports a module that returns a `start` method that takes a `filter` function as a parameter.
this allows you to controll if a log entry gets printed, and you can mangle the output (in the `msg` property of the log) or even append data. here is a ridiculous example:
this allows you to controll if a log entry gets printed, and you can mangle the output (in the `msg` property of the log). here is a ridiculous example:

@@ -58,0 +60,0 @@ ```javascript

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc