progrescii
NodeJS easy graphical progress bars for the terminal/console.
Getting Started
Installation
npm install progrescii
Usage
Simple instance creation with default style:
'use strict'const Progress = // Create a instance and render the progress barvar p = Progress // Add to the total percentage so farp // Set the total percentage so farp
Output Example:
Loading ▪▪▪▪▪▪▪▪▪▪▫▫▫▫▫▫▫▫▫▫ 50% in 0.51s
Customize
Configure template size and style:
'use strict'const Progress = var p = Progress // Update the total percentagep
Output Example:
Downloading █████░░░░░░░░░░░░░░░ 25% in 0.00s
Global Customization
To use the same configuration every time we create a instance of the bar we can configure it as following:
'use strict'const Progress = // Global configurationProgress// Create and update instanceProgress ;
Output Example:
Retrieving Information [================== ] 91% in 0.51s