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.
Create boxes around strings - great for console printing
yarn add -D cli-banner
# or
npm install --save-dev cli-banner
const banner = require('cli-banner');
const options = {}
console.log(banner('hello world', options)));
// ┌──────────────────────────────────────────────────────────────────────────────┐
// │ │
// │ hello world │
// │ │
// └──────────────────────────────────────────────────────────────────────────────┘
banner "hello world"
# ┌──────────────────────────────────────────────────────────────────────────────┐
# │ │
# │ hello world │
# │ │
# └──────────────────────────────────────────────────────────────────────────────┘
Property Name | CLI Name | Description | Choices | Default |
---|---|---|---|---|
width | width | Width of the banner (including borders) | any Number , "auto" | 80 |
color | color | Color of the test | "black" , "red" , "green" , "yellow" , "blue" , "magenta" , "cyan" , "white" , "gray" , "redBright" , "greenBright" , "yellowBright" , "blueBright" , "magentaBright" , "cyanBright" , "whiteBright" , | "white" |
borderColor | border-color | Color of the border | "black" , "red" , "green" , "yellow" , "blue" , "magenta" , "cyan" , "white" , "gray" , "redBright" , "greenBright" , "yellowBright" , "blueBright" , "magentaBright" , "cyanBright" , "whiteBright" , | "white" |
paddingLength | Minimum amount of spaces on either side of the string | 3 |
package.json
dependencyFAQs
Create boxes around content
We found that cli-banner 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.