
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
simple-color-print
Advanced tools
4 functions to print out different colors to the console. Use this for console printing in NodeJS. It prints out the full object so you don't end up with "[Object object]". Also includes TypeScript declaration file so it works with "no-implicity-any" in tsconfig.json. No configuration required.
created by Sean Maxwell June 25, 2018.
cerr('hello world')
<-- prints red
cinfo('hello world')
<-- prints green
cwarn('hello world')
<-- prints yellow
cimp('hello world')
<-- prints blue and underlined
TypeScript example:
import { cerr, cinfo, cwarn, cimp } from 'simple-color-print';
if (err) {
cerr(err);
} else if (info) {
cinfo(info);
}
let scp = require('simple-color-print');
if (warning) {
scp.cwarn(warn);
} else if (info) {
scp.cimp('All is well!');
}
FAQs
Print to the console in different colors and fully print objects
We found that simple-color-print 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.