{"repo":"webdiscus/ansis","free":true,"listed":false,"github":"https://github.com/webdiscus/ansis","clone":"git clone https://github.com/webdiscus/ansis.git","description":"CJS/ESM ANSI color library for terminals, CI and Chromium-based browser consoles. Compatible with Bun, Deno, Next.JS.","language":"JavaScript","stars":504,"topics":["ansi","colors","console","terminal","chalk","cli","styles","javascript","nodejs","escape"],"license":"ISC","category":"cli-tools","readme_excerpt":"Make terminals a little more colorful 🌈 [ANSI S]tyles ANSI color library for use in terminals, CI environments, and Chromium-based browsers.\\ Ansis is focused on small size and speed while providing rich functionality and handling edge cases. 🔗 Shortcuts 🚀 Getting Started 📌 Ansis vs styleText() 🔄 Migrating from ⚖️ Alternatives ✅ Compare features 💻 CLI Environment 🧪 CLI Testing ⚙️ Compatibility 🔧Troubleshooting 🔔 Upgrading to v4 · New features · Breaking changes ⭐️ Star History ✨ Highlights ⚡ Performance Ansis is the fastest when using 2 or more styles, which is the common real-world use case. Library 1 style 2+ styles ------------------ -----------------: ----------------: ansis 60M ops/sec 🏆 60M ops/sec picocolors 🏆 109M ops/sec 58M ops/sec chalk 55M ops/sec 47M ops/sec util.styleText 0.5M ops/sec 0.5M ops/sec 📊 Full benchmarks → 💡 Features 🎨 Colors & Styles - ANSI styles: dim bold italic underline strikethrough ... - ANSI 16 colors: red redBright bgRed bgRedBright ... - ANSI 256 colors: fg(n) bg(n) - Truecolor: hex('#FF75D1') rgb(224, 17, 95) bgHex() bgRgb() - Named truecolors: orange() bgPink() ... - via extend() ✍️ Syntax - Chained styles: red.bold.underline - no nested calls like red(bold(underline())) - Template literals: red text - no parentheses - Nested templates: red Error: ${cyan file.js } not found - no string concatenations 🛠️ Utilities - Strip ANSI codes: ansis.strip(red('text')) → plain 'text' - Hyperlink: blue.link('https://...', 'Click here') ,","default_branch":null,"files":null,"tree":[],"storefront":"/r/webdiscus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/webdiscus/ansis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}