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

debugger_js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debugger_js

A library for debug logging in javascript

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

debugger_js

A small utility library for logging front end javascript code.

{logType} - A function to create a valid logType to be used when making a logger(opts)
{logType} - A function to create a debug logger(opts)

{logType} - A function to create a valid logType to be used when making a logger(opts)

Kind: global function

ParamTypeDescription
optsobjectAn object containg the possible options for this function
opts.logStylestringThe style of logging this logType will generate. Possible values: log, warn, error, info. Default value: 'log'
opts.textColorstringThe text color this logType will generate. Default value: '#000' (Black)
opts.backgroundColorstringThe background color this logType will generate. Default value: '#fff' (white)

{makeLogger} - A function to create a debug logger(opts)

Kind: global function

ParamTypeDescription
optsobjectAn object containg the possible options for this function
opts.logTypesobjectA collection of logTypes created by the logType function
opts.debugModesstringA collection of key value pairs where every key is a logType, and every value is a boolean whether or not that logType is being displayed. If no debugModes are provided, opts.logging will automatically be set to 'logNone'.
opts.loggingstringAn optional parameter to set what will be logged. Possible values include 'logAll', 'logNone'. All other values will default to using the debugModes. logAll will log all debug messages, regardless of debugMode. logNone will log no debug messages, regardless of debugMode.

FAQs

Package last updated on 25 Jul 2017

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