Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
cli-progress-box
Advanced tools
Quick visual change detection indicator
var opts = { padding: 2, maxStep: 8, width: 3 }
var box = require( 'cli-progress-box' )( opts )
opts.character = '愛'
setInterval( function () {
opts.clcColor = box.bgColors.bright[ opts.step ]
console.log( box.clc.reset + box.tick() )
}, 200 )
A visual CLI change/progress indicator
When you save a file and your watcher rebuilds your project it is sometimes hard to see that anything has changed because the output from the watch process is so similar to the previous output.
CLI applications.
var progressBox = require( 'cli-progress-box' )
var opts = {} // state object ( mutates )
var box = progressBox( opts ) // create new progress box
box.tick() // alias for box()
box.redraw() // shorthand for `box.clc.reset + box.tick()`
box.clc // embedded `medikoo/cli-color` object
box.bgColors.dark // list of `medikoo/cli-color` bacground colors
box.bgColors.bright // list of bright `medikoo/cli-color` background colors
box.bgColors.all // both lists
box.fgColors.dark // list of `medikoo/cli-color` bacground colors
box.fgColors.bright // list of bright `medikoo/cli-color` background colors
box.fgColors.all // both lists
opts = opts || {}
if ( !opts.step ) opts.step = 0
if ( !opts.maxStep ) opts.maxStep = 4
if ( !opts.offset ) opts.offset = 0
if ( !opts.width ) opts.width = 2
if ( !opts.stepSize ) opts.stepSize = opts.stepSize
if ( !opts.padding ) opts.padding = 0
if ( !opts.margin ) opts.margin = 4
if ( !opts.character ) opts.character = ' '
if ( !opts.colors ) opts.colors = clcBgColors.bright.slice() // color changes based on opts.step
if ( !opts.getHeader ) opts.getHeader = function ( opts ) { return '' }
if ( !opts.getFooter ) opts.getFooter = function ( opts ) { return '' }
if ( !opts.transform ) opts.transform = _transform
if ( !opts.render ) opts.render = _render
if ( !opts.generateBox ) opts.generateBox = _generateBox
npm test
FAQs
Quick visual change detection indicator
The npm package cli-progress-box receives a total of 3 weekly downloads. As such, cli-progress-box popularity was classified as not popular.
We found that cli-progress-box demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.