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.
simple-terminal-color
Advanced tools
Change text colors easily for console logs.
1- Install the package
$ npm i simple-terminal-color
1- Create "test.js" file
const log = require('simple-terminal-color')
/*-------------------------------
--------- Colored Text ----------
---------------------------------
*/
// RED
log.error("Error Text")
// GREEN
log.success("Success Text")
// YELLOW
log.warning("Warning Text")
// BLUE
log.info("Info Text")
// GRAY
log.gray("Gray Text")
// PURPLE
log.purple("Purple Text")
// PINK
log.pink("Pink Text")
// WHITE
log.white("White Text")
/*-------------------------------
---------- Bold Text ------------
---------------------------------
*/
// BOLD STYLE
log.bold.error("Bold Error Text")
/*-------------------------------
--------- Add Symbol ------------
---------------------------------
*/
// CHECK ALL SYMBOLS
console.log(log.symbols)
// ADD SYMBOL TO TEXT
log.error(log.symbols.warning+" Error Text")
2- Run
$ node test.js
This project is licensed under the MIT License
FAQs
Simple Terminal Color (NodeJS,console.log)
The npm package simple-terminal-color receives a total of 144,131 weekly downloads. As such, simple-terminal-color popularity was classified as popular.
We found that simple-terminal-color 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
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.