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 🙏

© 2026 – Pkg Stats / Ryan Hefner

linecolor

v1.0.11

Published

Terminal Colored text using Linecolor

Readme

Linecolor

A lightweight ANSI coloring toolkit for Node.js.
Supports RGB, HEX, HSL, Named Colors, background colors, text styling, tags, boxes, outlines, gradients, progress bars, timestamps, and more.

Installation

npm install linecolor

Functions

  • TextBold(text) Creates a bold text effect using ANSI. Used to highlight important sections.

  • TextDim(text) Reduces text brightness. Often used for system logs, debugging, or supplementary messages.

  • TextItalic(text) Creates an italic effect. Some terminals may not support it, but most do.

  • TextUnderline(text) Underlines all text. Useful for titles or links.

  • TextDoubleUnderline(text) Double underline. Stronger than regular underline, used to emphasize main titles.

  • TextOverline(text) Creates a line above text. Used to group or mark sections.

  • TextStrike(text) Threads text horizontally. Used to indicate "deleted," "cancelled," or content that is no longer applicable.

  • TextInverse(text) Inverts the foreground ↔ background color. Creates the strongest highlight effect in ANSI.

  • TextBox(text, hex)
    Creates a simple ASCII box with border and colored content.

  • TextTag(tag, msg, hex)
    Creates a colored prefix tag format.

  • TextGlitch(text)
    Generates a cyber-glitch random RGB effect.

  • TextShadow(text, shadowHex)
    Adds a second shadow line below the text.

  • TextOutline(text, hex)
    Simulates a text outline using multi-line ASCII layout.

Example Usage

import { 
  TextHEX, 
  TextBold, 
  TextBox, 
  TextProgressBar 
} from "linecolor";

console.log(TextBold(TextHEX("Hello!", "#ff0077")));
console.log(TextBox("System Ready", "#00eaff"));
console.log(TextProgressBar(72));

Notes

Only uses ANSI escape codes, no dependencies. Fully compatible with most terminals (Windows, macOS, Linux).