
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 TypeScript library for terminal text styling using ANSI escape codes
A lightweight TypeScript library for terminal text styling using ANSI escape codes. Similar to Tlux but with a fluent API design.
npm install terminalux
import { tlux } from "terminalux";
// Simple colored text
tlux.red().log("This is red text");
tlux.green().log("This is green text");
tlux.blue().log("This is blue text");
import { tlux } from "terminalux";
// Chain multiple styles
tlux.red().bold().underline().log("Red, bold, and underlined text");
tlux.green().reverse().log("Green text with reversed background");
import { Tlux } from "terminalux";
// Create your own instance
const myTlux = new Tlux();
myTlux.yellow().bold().log("Custom tlux instance");
red()green()yellow()blue()magenta()cyan()white()rgb(r, g, b) - red, green, blue valuesbold()italic()underline()reverse() - Reverses foreground and background colorsreset() - Resets all stylinglog(message: string, shouldReset?: boolean)Outputs the styled message to the console.
message: The text to displayshouldReset: Whether to reset styles after logging (default: true)All color and style methods return the Tlux instance, allowing for method chaining:
tlux.red().bold().underline().log("Styled text");
import { tlux, Tlux } from "terminalux";
// Basic colors
tlux.red().log("Error message");
tlux.green().log("Success message");
tlux.yellow().log("Warning message");
// Styled text
tlux.blue().bold().log("Important information");
tlux.magenta().underline().log("Underlined text");
// Complex styling
tlux.cyan().bold().reverse().log("Highlighted text");
tlux.rgb(255, 255, 0).italic().log("Italic text, rgb colors")
// Create multiple instances
const errorTlux = new Tlux();
const successTlux = new Tlux();
errorTlux.red().bold().log("Error occurred!");
successTlux.green().log("Operation completed successfully!");
This library is written in TypeScript and includes type definitions out of the box.
ISC
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A lightweight TypeScript library for terminal text styling using ANSI escape codes
We found that terminalux 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.