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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nstypocolors

v1.2.14

Published

A typescript color package specially for typescript developers.

Downloads

643

Readme

nstypocolors

npm version Downloads Last Commit

nstypocolors is a TypeScript package that provides colorful console logs for TypeScript developers. It allows you to log messages with different colors in the console, making it easier to debug and understand your logs.

Features

  • Log messages with different colors such as red, green, yellow, blue, magenta, cyan, and white.
  • Designed specifically for TypeScript, ensuring strong type safety and compatibility.

Installation

You can install nstypocolors via npm:

npm install nstypocolors

Usage

To start using nstypocolors, import the desired functions into your TypeScript project

import {
  logRed,
  logGreen,
  logPink,
  logYellow,
  logBlue,
  logMagenta,
  logCyan,
  logWhite,
  logBlack,
} from "nstypocolors";

Now you can use the provided functions to log colorful messages:

logRed("This is a red message");
logGreen("This is a green message");
logPink("This is a pink message");
logYellow("This is a yellow message");
logBlue("This is a blue message");
logMagenta("This is a magenta message");
logCyan("This is a cyan message");
logWhite("This is a white message");
logBlack("This is a black message");

Similarly, you can use bright and pastel colors

import { logBrightRed, logPastelGreen } from "nstypocolors";

// Log message in bright colors
logBrightRed("This is a bright red message!");

// Log message in pastel colors
logPastelGreen("This is a pastel green message!");

[!TIP] Consider importing only the necessary colors to streamline your code and reduce unnecessary clutter. By importing only the colors you need, you can enhance readability and maintainability, ensuring that your code remains clean and efficient.

Our Colors

The nstypocolors package provides a variety of colors that you can use for colorful console logging. Here are the available colors:

  • Red: Logs a message in red.
  • Green: Logs a message in green.
  • Pink: Logs a message in pink.
  • Yellow: Logs a message in yellow.
  • Blue: Logs a message in blue.
  • Magenta: Logs a message in magenta.
  • Cyan: Logs a message in cyan.
  • White: Logs a message in white.
  • Black: Logs a message in black.

In addition to the standard colors, the package also provides bright and pastel colors:

  • Bright Colors:

    • Bright Red: Logs a message in bright red.
    • Bright Green: Logs a message in bright green.
    • Bright Pink: Logs a message in bright pink.
    • Bright Yellow: Logs a message in bright yellow.
    • Bright Blue: Logs a message in bright blue.
    • Bright Magenta: Logs a message in bright magenta.
    • Bright Cyan: Logs a message in bright cyan.
    • Bright White: Logs a message in bright white.
  • Pastel Colors:

    • Pastel Red: Logs a message in pastel red.
    • Pastel Green: Logs a message in pastel green.
    • Pastel Yellow: Logs a message in pastel yellow.
    • Pastel Blue: Logs a message in pastel blue.
    • Pastel Magenta: Logs a message in pastel magenta.
    • Pastel Cyan: Logs a message in pastel cyan.
    • Pastel White: Logs a message in pastel white.
    • Pastel Pink: Logs a message in pastel pink.
    • Pastel Lavender: Logs a message in pastel lavender.
    • Pastel Coral: Logs a message in pastel coral.
    • Pastel Mint: Logs a message in pastel mint.

You can use the provided functions to log messages in these colors, adding a vibrant and visually appealing touch to your console output.

Contact

You can join our discord server for support Discord Server

Thank You

I hope this package will help you, happy coding.