🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
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
Version published
Weekly downloads
70K
-22.1%
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