Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
debugger_js
Advanced tools
A small utility library for logging front end javascript code.
boolean
boolean
Kind: global function
Returns: boolean
- - Returns true if the color parameter is a valid 3 or 6 digit hexadecimal color, false otherwise
Param | Type | Description |
---|---|---|
color | string | A hexadecimal color value. |
Kind: global function
Param | Type | Description |
---|---|---|
opts | object | An object containg the possible options for this function |
opts.logStyle | string | The style of logging this logType will generate. Possible values: log, warn, error, info. Default value: 'log' |
opts.textColor | string | The text color this logType will generate. Default value: '#000' (Black) |
opts.backgroundColor | string | The background color this logType will generate. Default value: '#fff' (white) |
Kind: global function
Param | Type | Description |
---|---|---|
opts | object | An object containg the possible options for this function |
opts.logTypes | object | A collection of logTypes created by the logType function |
opts.debugModes | string | A 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.logging | string | An 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
A library for debug logging in javascript
The npm package debugger_js receives a total of 0 weekly downloads. As such, debugger_js popularity was classified as not popular.
We found that debugger_js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.