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.
@santi100/coloring-lib
Advanced tools
This is a coloring library that uses ANSI sequences to color text on a terminal. Be aware there might be bugs hidden in this code. Pull requests and issues are welcome!
This is a coloring library that uses ANSI sequences to color text on a terminal. Be aware there might be bugs hidden in this code. Pull requests and issues are welcome!
Import @santi100/coloring-lib
(for ESM) or @santi100/coloring-lib/cjs
(for CJS).
Import ./coloring-lib/index.js
(ESM) or ./coloring-lib/cjs/index.js
(CJS).
npm install @santi100/coloring-lib
, yarn add @santi100/coloring-lib
, or pnpm install @santi100/coloring-lib
, depending on what package manager you use in your project.git clone https://github.com/santi100a/coloring-lib
.npm install
, yarn install
, or pnpm install
to install dependencies.coloring(string: string, color: Color): string;
This function takes in a string to color, and a color, which
can be one of 11 colors/effects: red, yellow, green, black, blue, magenta, cyan, white, bold, conceal and blink.
coloring(string: string, color: Color[]): string;
This function takes in a string to color, and an array of the aforementioned colors/effects. If you put two colors, the latter one/s will override the former/s.
class Coloring
: This is a colorizer object class. Its instance methods are called the same as the
colors/effects, and you can chain them. To convert the object to a string, call the Coloring.prototype.resolve()
method.
FAQs
Santi's Coloring Library: Make your text look really cool!
The npm package @santi100/coloring-lib receives a total of 4 weekly downloads. As such, @santi100/coloring-lib popularity was classified as not popular.
We found that @santi100/coloring-lib 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.