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

chalk-color-style-quiz

v0.1.4

Published

Color Style For Chalk

Readme

Chalk Color Style Quiz

Color Style Quiz For Chalk Chalk Quiz Color Style is a color style quiz for chalk

Install

npm install chalk-color-style-quiz

Install Chalk 4

npm install [email protected]

Usage

var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.completed();

Chalk Quiz Color Style comes with an easy to use color style quiz API

Custom text console.log

var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.log(`
${chalkcolorquiz.blankdone()} Creating new html file done
`);

or this

var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.log(`
${chalkcolorquiz.blankdone()} 
${chalkcolorquiz.hex('#0f0')('Creating new html file done')}
`);

or this to install chalk

var chalk = require('chalk');
var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.log(`
${chalkcolorquiz.blankdone()} 
${chalk.hex('#0f0')('Creating new html file done')}
`);

API

chalkcolorquiz.<style>()

chalkcolorquiz.completed

Specifies the completed color for color support

chalkcolorquiz.failed

Specifies the failed color for color support

chalkcolorquiz.textcompleted

Specifies the completed color for color support

chalkcolorquiz.textfailed

Specifies the failed color for color support

chalkcolorquiz.blankcompleted

Specifies the blank completed color for color support

chalkcolorquiz.blankfailed

Specifies the blank failed color for color support

chalkcolorquiz.blanktextcompleted

Specifies the blank completed text color for color support

chalkcolorquiz.blanktextfailed

Specifies the blank failed text color for color support

chalkcolorquiz.log

Specifies the custom console.log for console of color support

Text Colors And Format Styles

Text Format

  • bold - Make the text bold.
  • dim - Make the text have lower opacity.
  • underline - Put a horizontal line below the text.
  • inverse- Invert background and foreground colors.

Text Colors

  • white
  • black
  • gray
  • red
  • blue
  • green
  • yellow
  • magenta
  • cyan
  • whitebright
  • blackbright (alias: gray, grey)
  • graybright
  • redbright
  • greenbright
  • bluebright
  • yellowbright
  • magentabright
  • cyanbright

Text Background colors

  • bgwhite
  • bgblack
  • bggray
  • bgred
  • bgblue
  • bggreen
  • bgyellow
  • bgmagenta
  • bgcyan
  • bgwhitebright
  • bgblackbright (alias: bggray, bggrey)
  • bggraybright
  • bgredbright
  • bgbluebright
  • bggreenbright
  • bgyellowbright
  • bgmagentabright
  • bgcyanbright

Hex And Rgb Colors

Chalk Color Style supports hex and rgb colors Examples:

  • chalkcolor.hex('#0000a5').bold('Hello world!')
  • chalkcolor.rgb(0, 0, 165).underline('Hello world!')

Background versions of these models are prefixed with bg and the first level of the module capitalized (e.g. hex for foreground colors and bghex for background colors).

  • chalkcolor.bghex('#0000a5').bold('Hello world!')
  • chalkcolor.bgrgb(0, 0, 165).underline('Hello world!')

The following color models can be used:

  • rgb Example: chalkcolor.rgb(0, 0, 165).underline('Hello world!')
  • hex Example: chalkcolor.hex('#0000a5').bold('Hello world!')