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

colored-progress-bar-webpack-plugin

v1.2.4

Published

A customizable progress bar plugin for Webpack

Downloads

108

Readme

Features

  • No dependencies
  • Show only the elements you want
  • Modify color for whole bar or for each element separately
  • Modify size of the progress bar up to the maximum size available on the line
  • Modify characters of the bar (complete and incomplete)
  • Hide cursor during progression
  • Play the default notification sound when compilation is complete. Very useful in watch mode. Currently, this feature is only available for Windows 10 users.

Installation

npm install -D colored-progress-bar-webpack-plugin
yarn add -D colored-progress-bar-webpack-plugin

Usage

Include the following in your Webpack config.

  const ColoredProgressBar = require('colored-progress-bar-webpack-plugin');
  
  plugins: [
      new ColoredProgressBar()
  ]

Elements

The progress bar is made up of 5 elements on 2 lines.

First row

  • Status : compilation status
  • Bar : the bar itself
  • Percent : percentage of progression
  • Message : summary of the action the compiler performs

Second row

  • Detail : action that the compiler performs

Options

Elements

Define the elements to display (boolean)

  • showStatus
  • showBar
  • showPercent
  • showMessage
  • showDetail

Colors

Color of the entire progress bar (string)

  • colorAll if you set the color for the whole bar, it will override the elements colors

Color of each item separately (string)

  • colorStatus
  • colorBar
  • colorPercent
  • colorMessage
  • colorDetail

Accepts the following values:

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • darkGray
  • lightGray
  • lightRed
  • lightGreen
  • lightYellow
  • lightBlue
  • lightMagenta
  • lightCyan
  • white

Width

Number of characters of the progress bar (number)

  • width if this exceeds the maximum size available on the line, this value will be automatically reduced

Characters

Define the characters used to represent the completed and uncompleted portion of the bar (string)

  • completeChar
  • incompleteChar

Detail alignment

Define if the detail text should be aligned with the bar (boolean)

  • alignDetailOnBar

Cursor

Define if the cursor should be hidden during compilation (boolean)

  • hideCursor

Notification sound

Define if the default notification sound is played when compilation is complete (boolean)

  • notification only available for Windows 10 users

Default values

    new ColoredProgressBar({
      showStatus: true,
      showBar: true,
      showPercent: true,
      showMessage: true,
      showDetail: true,
    
      colorAll: null,
      colorStatus: 'green',
      colorBar: 'lightCyan',
      colorPercent: 'blue',
      colorMessage: 'lightYellow',
      colorDetail: 'lightMagenta',
    
      width: 100,
      completeChar: '█',
      incompleteChar: '░',
      alignDetailOnBar: true,
      hideCursor: true,
      notification: false,
})

License

MIT