Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
pino-tiny
Advanced tools
Readme
a tiny little log formatter for pino.
yeah, i know, pino-colada...
...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!
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.
npm i -D pino-tiny
--or--
yarn add --dev pino-tiny
...run it with your application that is already using pino to log stuff...
$ node index.js | pino-tiny
...or put it in your package.json
file...
{
...
"scripts": {
"dev": "nodemon index.js | pino-tiny",
...
}
}
pino-tiny can be used in code too as a prettifier, if you want. here is how you set it up:
const { PinoTinyPrettifier } = require('pino-pretty')
const Pino = require('pino')
const logger = new Pino({
prettifier: PinoTinyPrettifier(),
prettyPrint: true
})
logger.trace('trace message')
logger.debug('debug message')
logger.info('info message')
logger.warn('warn message')
logger.error('error message')
logger.fatal('fatal message')
res
and req
properties in the log data, it will put dimmed request and response info (method, url, status code).FAQs
Unknown package
The npm package pino-tiny receives a total of 230 weekly downloads. As such, pino-tiny popularity was classified as not popular.
We found that pino-tiny demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.