
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
color-loggers
Advanced tools
Print to console with colors.
yarn add color-loggers
import { Blue, Green, Red } from 'color-loggers';
const info = new Blue();
const success = new Green();
const error = new Red();
info.log('This is an information.');
success.log('Congratulations!');
error.log('Something is wrong!');
const info = new Blue('👉');
const success = new Green('🎉');
const error = new Red('⛔️');
info.log('This is an information.');
success.log('Congratulations!');
error.log('Something is wrong!');
const info = new Blue(() => `[${new Date()}]:`);
info.log('This is an information.');
Output:
[Thu Mar 02 2023 11:37:55 GMT-0800 (Pacific Standard Time)]: This is an information.
import { Color } from 'color-loggers';
import Styles from 'color-loggers/styles';
const logger = new Color(Styles.FgWhite, '');
logger.log('This is a white text.');
const logger = new Color(Styles.FgWhite, '');
logger.disable();
logger.log('This is a white text.'); // will not be printed
FAQs
Print to console with colors.
The npm package color-loggers receives a total of 7,931 weekly downloads. As such, color-loggers popularity was classified as popular.
We found that color-loggers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.