Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oada/pino-debug

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oada/pino-debug

OADA pino-debug wrapper

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-75%
Maintainers
0
Weekly downloads
 
Created
Source

@oada/pino-debug

Version code style: prettier License

A library for handle making debug.js work automatically with pino.

Usage

Import this library, then just use debug.js as normal.

// You probably want this to be your first import in your main file
import '@oada/pino-debug';

// Then just use debug.js as normal
import debug from 'debug';

const info = debug('example:info');

// Pass a context object and a message string
info({/* ...context */});, 'Hello world!');

Advanced Usage

The pino API can still be accessed too.

// If you want to access pino, it is exported by this lib
import { pino } from '@oada/pino-debug';

/**
 * See the pino API for what you can do
 * !!! DO NOT import pino directly !!!
 */
const logger = pino({
  /* ...options */
});

FAQs

Package last updated on 02 Oct 2024

Did you know?

Socket

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.

Install

Related posts

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