
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
pino-devtools
Advanced tools
A transport for viewing logs in your favorite browser devtools!
$ npm i pino-devtools
Given an application your-app.js
that logs via pino, you would use pino-devtools
like so:
$ node your-app.js | pino-devtools
pino-devtools
automatically opens a page in your default browser (unless --no-open
is supplied). Open the devtools and you will see the logs coming from your application into the console tab.
--host 127.0.0.1
: the host for the HTTP and web socket servers--port 3010
: the HTTP server port--no-open
: do not automatically open the page in the browser--mode websocket
: the server mode, more information in the next section--tee
: also send the logs to stdout
Note: the web socket port is port + 1
.
The server can be started in one of these two modes:
websocket
: the default mode, which opens a new tab in your browser and forwards the logs via a websocket. There is nothing to configure in your applicationbuffer
: a mode that does not open a new tab or use a websocket but uses a buffer to store all the logs and a client in your application to output those logs in the same console as your applicationbuffer
modeUse pino-devtools
like so:
$ node your-app.js | pino-devtools --mode buffer
Update your application code to require the pino-devtools
client and calls the fetchBufferedLogs()
async function as early as possible:
// index.js
const { fetchBufferedLogs } = require('pino-devtools/src/client');
await fetchBufferedLogs();
pino-devtools is released under the Mozilla Public License Version 2.0. See the bundled LICENSE file for details.
FAQs
A transport for viewing the logs in your favorite browser devtools
The npm package pino-devtools receives a total of 651 weekly downloads. As such, pino-devtools popularity was classified as not popular.
We found that pino-devtools 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.