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.
A very tiny Javascript debugging utility. It's a lite version of debug.
A very tiny Javascript debugging utility. It's inspired by debug but for only be used on browsers.
package | minified | gzipped |
---|---|---|
debug (browser) | 7.67KB | 3.05KB |
debug-lite | 1.37KB | 661 bytes |
Files was minified using https://closure-compiler.appspot.com/home .
$ npm install debug-lite
For browser globals:
debug-lite.umd.min.js
file and use window.debugLite.createDebug
function.For bundlers like Webpack or Browserify:
import { createDebug } from 'debug-lite'
// import { createDebug } from 'debug-lite';
const createDebug = require('debug-lite').createDebug;
const log = createDebug('App');
const logInit = createDebug('App:init');
const logBuild = createDebug('App:build');
function init() {
logInit('Initializing...');
}
function build() {
logBuild('Building...');
}
function main () {
log('app.js file is loaded');
init();
build();
}
main();
Open console and try:
localStorage.DEBUG = '*';
location.reload();
You can found a complete example here.
MIT
FAQs
A very tiny Javascript debugging utility. It's a lite version of debug.
We found that debug-lite 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.