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.
:pencil: A simplistic node.js logger that can be configured to the max.
You can choose to either pass options as an argument...
const logger = require('outputjs');
const chalk = require('chalk');
const options = {
name: 'server', //Name of the logger. Will be displayed in [] tags. DEFAULT: Name of caller file
color: chalk.bgGreen, //Color used for highlighting the name. DEFAULT: random unique color
padding: 10, //Padding with x width for the name. DEFAULT: 10
prefix: '-->', //Prefix used after the name. DEFAULT: "->"
debug: true, //Enables output with .debug() DEFAULT: false
debugPrefix: 'D: ', //Prefix used for debugging. DEFAULT: "DEBUG:"
filePath: 'output.js' //Outputs everything to a file. Doesn't support colors. DEFAULT: false
}
const server = new logger(options);
...or simple go with no configuration at all.
const logger = require('outputjs');
const server = new logger();
The following functions are available to you:
server.debug("A debug message! Without debug set to true, it won't display. Highlighted in bright yellow.");
server.info("A info message! Highlighted in white.");
server.success("A success message! Highlighted in green.");
server.warn("A warn message! Highlighted in yellow.");
server.error("A error message! Highlighted in red.");
FAQs
A simplistic logger and output manager.
We found that outputjs 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.