New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nexssp/dddebug

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexssp/dddebug

Easy Debugging with useful information

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

@nexssp/dddebug

  • EASY Debugging with USEFUL information

Just simply debug function. no console.log/process.exit -> just ddd with nice debug output and time executed.

  • It shows where stopped with: debugged value (object, array, ...), mulitple values,
  • line number
  • filename
  • filepath
  • exec time
  • current working dir (cwd)

image

Installation

npm i @nexssp/dddebug

Usage

Global

require('@nexssp/dddebug/global') // and from now you can use it everywere..

ddc('debug A')
ddd('stop here', { myvar: debug })

Standard

const { ddd, ddc } = require('@nexssp/dddebug')

ddc({ x: 1 }, ['another', 'var'], 'something else') // will not stop here. ddd will stop

Above will display but program will continue:

dddebug function - continue example display

ddd(varToDebug, anothervar, myobject, myArray);

// OR

const d = require("@nexssp/dddebug").ddd;

const myObject = {'test', {"x":["y"]}};

d(myObject);

Note

Time is calculated from require("@nexssp/dddebug"); so put this at the top of the program. after ddd program will stop, and ddc will continue.

Keywords

FAQs

Package last updated on 28 May 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