Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 591 Bytes

File metadata and controls

15 lines (10 loc) · 591 Bytes

ansi-escape-code

Effortless, fully nestable ANSI styling — with both a tiny class-based core and a super-ergonomic Proxy interface.

import { ansi } from "ansi-escape-code/proxy";

console.log(ansi.red`Hello ${ansi.green.bold`Beautiful`} World`.toString());
console.log(ansi.trueColor(255, 80, 40).bold("Hot!").toString());

API Docs — hosted separately to reduce npm package size.

For a full ANSI/VT reference, decoder, builder, and terminal support matrix, see Ansicode.