
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A lightweight, powerful console styler by kormoi.com
cstyler is a zero-dependency Node.js toolkit designed to make your terminal output beautiful. It features an intuitive chainable API, support for HEX/RGB colors, and a unique nested inline styling system.
npm install cstyler
You can combine text styles and colors using simple dot notation. JavaScript
const cstyler = require("cstyler");
// Bold, Underline, and Yellow text
console.log(cstyler.bold.underline.yellow("Hello World!"));
// Darkened green text
console.log(cstyler.green.dark("Subtle green message"));
Go beyond the standard 16 colors with TrueColor support. JavaScript
// Foreground Colors
console.log(cstyler.hex('#FF5733')("Vibrant Orange"));
console.log(cstyler.rgb(100, 150, 200)("Custom Blue"));
// Background Colors
console.log(cstyler.bgHex('#333').white("White text on dark grey"));
This is the most powerful way to style complex strings. Use {style text} syntax inside backticks. JavaScript
console.log(cstyler`
{bold.red Critical Error:} {italic.gray Connection failed.}
{bold.green Success! {italic.white kormoi.com is online.}}
{hex('#00dbde').bold Powerful custom colors work inside too!}
`);
🎨 Available Styles
| Category | Available Properties |
|---|---|
| Formatting | bold, italic, underline, dark |
| Colors | red, green, blue, yellow, purple, cyan, white, gray, magenta |
| Backgrounds | bgRed, bgGreen, bgBlue, bgYellow, bgPurple, bgGray |
| Custom | .hex(), .rgb(), .bgHex(), .bgRgb() |
Note: You cannot use two foreground colors at once (e.g., red.blue). The last color in the chain will take priority.
cstyler is smart. If you pipe your output to a file or run it in an environment that doesn't support ANSI colors, it will silently return plain text. Your logs will remain clean and readable without any "garbage" characters.
Visit us at: kormoi.com
Feel free to use and contribute! Regards from kormoi.com.
FAQs
Chainable terminal text styling tool (bold, colors, etc.)
We found that cstyler demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.