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

@phenomnomnominal/debug

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phenomnomnominal/debug

Very lazy tool for adding debug logging

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61K
increased by3.35%
Maintainers
1
Weekly downloads
 
Created
Source

@phenomnomnominal/debug

npm version

debug is a super lazy way to add debug logging!

Usage

import { debug } from '@phenomnomnominal/debug';

debug({ enabled: true });

Options

export type DebugOptions = {
  enabled: boolean; // Enable debug logging
  time: boolean; // Enable function execution time logging
  values: boolean; // Enable argument and return value logging
  logPath: string; // Disable stdout logging and print to file at this path
  header: string; // Header name for the initial debug log
  include: DebugIncludes; // RegExp to match node_modules paths that should be included in the logs
  ignore: DebugIgnores; // RegExp to match local paths that should be ignored from the logs
  logger: DebugLogger; // Custom logger implementation (Maybe you want to send it via HTTP 🤷‍♂️)
};

FAQs

Package last updated on 05 Feb 2021

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