
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
A beautiful terminal styling library with gradient support, designed for CLI tools and pretty logs.
A beautiful terminal styling library with gradient support, designed for CLI tools and pretty logs.
Made by Relmzey (Nexta Development)
npm install aschalk
const ctr = require("aschalk");
console.log(ctr.red("Error message"));
console.log(ctr.green("Success message"));
console.log(ctr.gradient("Beautiful gradient!", ["#ff0000", "#00ff00"]));
const ctr = require("aschalk");
console.log(ctr.red("Red text"));
console.log(ctr.green("Green text"));
console.log(ctr.blue("Blue text"));
console.log(ctr.yellow("Yellow text"));
console.log(ctr.magenta("Magenta text"));
console.log(ctr.cyan("Cyan text"));
console.log(ctr.white("White text"));
console.log(ctr.gray("Gray text"));
console.log(ctr.bold("Bold text"));
console.log(ctr.italic("Italic text"));
console.log(ctr.underline("Underlined text"));
console.log(ctr.strikethrough("Strikethrough text"));
console.log(ctr.dim("Dim text"));
console.log(ctr.bgRed("Red background"));
console.log(ctr.bgGreen("Green background"));
console.log(ctr.bgBlue("Blue background"));
console.log(ctr.bgYellow("Yellow background"));
// Two colors
console.log(ctr.gradient("Hello World", ["#ff0000", "#00ff00"]));
// Multiple colors
console.log(ctr.gradient("Amazing!", ["#ff6b6b", "#4ecdc4", "#45b7d1"]));
console.log(ctr.rainbow("Rainbow colors!"));
console.log(ctr.sunset("Sunset vibes"));
console.log(ctr.morning("Morning light"));
Perfect for CLI tools and logging:
console.log(ctr.success("Task completed successfully"));
console.log(ctr.error("Something went wrong"));
console.log(ctr.info("Here's some information"));
console.log(ctr.warn("Be careful with this"));
console.log(ctr.hex("#ff6b6b", "Custom hex color"));
console.log(ctr.rgb(255, 107, 107, "Custom RGB color"));
console.log(ctr.hsl(0, 100, 80, "Custom HSL color"));
ctr.red(text) - Red textctr.green(text) - Green textctr.blue(text) - Blue textctr.yellow(text) - Yellow textctr.magenta(text) - Magenta textctr.cyan(text) - Cyan textctr.white(text) - White textctr.black(text) - Black textctr.gray(text) / ctr.grey(text) - Gray textctr.bold(text) - Bold textctr.dim(text) - Dim textctr.italic(text) - Italic textctr.underline(text) - Underlined textctr.strikethrough(text) - Strikethrough textctr.bgRed(text) - Red backgroundctr.bgGreen(text) - Green backgroundctr.bgBlue(text) - Blue backgroundctr.bgYellow(text) - Yellow backgroundctr.bgMagenta(text) - Magenta backgroundctr.bgCyan(text) - Cyan backgroundctr.bgWhite(text) - White backgroundctr.bgBlack(text) - Black backgroundctr.gradient(text, colors) - Custom gradient with array of colorsctr.rainbow(text) - Rainbow gradientctr.sunset(text) - Sunset gradient (orange to pink)ctr.morning(text) - Morning gradient (light green to pink)ctr.success(text) - Green checkmark with textctr.error(text) - Red X with textctr.info(text) - Blue info icon with textctr.warn(text) - Yellow warning icon with textctr.hex(color, text) - Custom hex colorctr.rgb(r, g, b, text) - Custom RGB colorctr.hsl(h, s, l, text) - Custom HSL colorctr.chain() - Returns chainable instance for combining styles#!/usr/bin/env node
const ctr = require("aschalk");
console.log(ctr.gradient("My Awesome CLI Tool", ["#667eea", "#764ba2"]));
console.log("");
console.log(ctr.success("Connected to database"));
console.log(ctr.info("Processing 1,234 records"));
console.log(ctr.warn("Rate limit approaching"));
console.log(ctr.error("Failed to upload file"));
console.log("");
console.log(ctr.rainbow("Thanks for using our tool!"));
Run the included demo to see all features:
npm install aschalk
node node_modules/aschalk/examples/demo.js
This package was created by Relmzey (Nexta Development).
Feel free to report issues or suggest improvements!
MIT License - feel free to use in your projects!
Made with ❤️ by Relmzey (Nexta Development)
FAQs
A beautiful terminal styling library with gradient support, designed for CLI tools and pretty logs.
We found that aschalk 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.