
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.
paint-terminal
Advanced tools
A lightweight Node.js utility for printing colored, styled terminal output using ANSI escape codes. Works with CommonJS and ESM formats.
require and importnpm install paint-terminal
🧪 Example: terminal_log with Color, Background, and Style
You can pass a text color, background color, and an optional text style to terminal_log.
import { terminal_log } from "paint-terminal";
// Green text, black background, bold style
terminal_log("✅ Task Completed", "green", "black", "bold");
// Yellow text with red background and underline
terminal_log("⚠ Warning!", "yellow", "red", "underline");
// Cyan text with no background, italic style
terminal_log("ℹ Info Message", "cyan", undefined, "italic");
// Bright white text with magenta background and inverse style
terminal_log("🚫 Access Denied", "brightWhite", "magenta", "inverse");
const { terminal_log } = require("paint-terminal");
terminal_log("Error occurred!", "red", "white");
terminal_log("Info message", "blue");
terminal_log("Debug", "gray", "black");
You can use any of the following color names for color (text) and background:
This package supports the following values for text color, background color, and styles.
| Text Colors | Background Colors | Styles |
|---|---|---|
black | black | reset |
red | red | bold |
green | green | dim |
yellow | yellow | italic |
blue | blue | underline |
magenta | magenta | inverse |
cyan | cyan | hidden |
white | white | strikethrough |
gray / grey | gray / grey | |
brightRed | brightRed | |
brightGreen | brightGreen | |
brightYellow | brightYellow | |
brightBlue | brightBlue | |
brightMagenta | brightMagenta | |
brightCyan | brightCyan | |
brightWhite | brightWhite |
import { console_log } from "./console";
// Basic colored log
console_log("Hello World!", "blue");
// Colored text with background
console_log("Success!", "white", "green");
// Red text with yellow background
console_log("Warning!", "red", "yellow");
FAQs
It gives color to console & terminal to print txt.
We found that paint-terminal 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.