npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@sheet-i18n/ansi-color

v0.6.1

Published

ANSI color codes(light version of chalk)

Downloads

84

Readme

@sheet-i18n/ansi-color 🎨

A lightweight ANSI color utility for Node.js, inspired by Chalk! 🚀

✨ Features

  • Minimal and fast 🏃💨
  • Supports chaining styles dynamically ✨
  • Uses ANSI escape codes for styling terminal text 🎨
  • Lightweight alternative to Chalk ⚡
  • Fully typed with TypeScript 🛠️

📦 Installation

npm install @sheet-i18n/ansi-color

or

pnpm add @sheet-i18n/ansi-color

🚀 Usage

import { chalk } from '@sheet-i18n/ansi-color';

console.log(chalk.red('Error: Something went wrong!'));
console.log(chalk.green.bold('Success: Operation completed!'));
console.log(chalk.blue.bgYellow('Warning: Check your input.'));

🔹 Chaining Styles

You can chain multiple styles together seamlessly:

console.log(chalk.bold.cyan('Bold and cyan!'));
console.log(chalk.red.bgWhite.bold('Red text with white background and bold!'));

🔹 Available Colors & Styles

| Style | ANSI Code | | ----------- | ---------- | | bold | \x1b[1m | | black | \x1b[30m | | red | \x1b[31m | | green | \x1b[32m | | yellow | \x1b[33m | | blue | \x1b[34m | | magenta | \x1b[35m | | cyan | \x1b[36m | | white | \x1b[37m | | gray | \x1b[90m | | bgBlack | \x1b[40m | | bgRed | \x1b[41m | | bgGreen | \x1b[42m | | bgYellow | \x1b[43m | | bgBlue | \x1b[44m | | bgMagenta | \x1b[45m | | bgCyan | \x1b[46m | | bgWhite | \x1b[47m |


🛠️ API

chalk.<color>(text: string): string

Applies the specified color to the text.

console.log(chalk.red('This is red'));

chalk.<color>.<style>(text: string): string

Applies multiple styles to the text.

console.log(chalk.blue.bold('This is bold and blue!'));

chalk.bg<Color>(text: string): string

Applies a background color.

console.log(chalk.bgYellow.black('Black text on yellow background'));

📜 License

This project is licensed under the ISC License.


👤 Author

devAnderson
📧 [email protected]
🌍 GitHub Profile


🚀 Enjoy styling your terminal output with @sheet-i18n/ansi-color! 🎨