
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
wukong-progress
Advanced tools
Lightweight ESM CLI progress bar for Node.js with multiple bars, groups, stages and JSON fallback
🎨 A Node.js / ESM style CLI progress bar library that supports:
yarn add wukong-progress chalk
# or
npm install wukong-progress chalk
import chalk from "chalk";
import { createMultiBar } from "wukong-progress";
const mb = createMultiBar();
const bar = mb.create(100, {
prefix: chalk.cyan("Build"),
format: "Build [:bar] :percent :current/:total",
});
async function run() {
for (let i = 0; i <= 100; i++) {
await new Promise((r) => setTimeout(r, 20));
bar.tick();
}
mb.stop();
console.log(chalk.green("\nDone!\n"));
}
run();
import chalk from "chalk";
import { createMultiBar } from "wukong-progress";
const mb = createMultiBar();
const build = mb.create(100, {
prefix: chalk.blue("Build"),
format: "Build [:bar] :percent",
});
const test = mb.create(50, {
prefix: chalk.magenta("Test"),
format: "Test [:bar] :percent",
});
async function run() {
for (let i = 0; i <= 100; i++) {
await new Promise((r) => setTimeout(r, 15));
if (i <= 50) test.tick();
build.tick();
}
mb.stop();
console.log(chalk.green("\nAll tasks done!\n"));
}
run();
Update progress with a descriptive payload message.
import chalk from 'chalk'
import { createMultiBar } from '../src/index.mjs'
const mb = createMultiBar()
const build = mb.create(100, {
prefix: chalk.blue('Build'),
format: 'Build [:bar] :percent :payload'
})
const test = mb.create(50, {
prefix: chalk.magenta('Test'),
format: 'Test [:bar] :percent'
})
async function run() {
for (let i = 0; i <= 100; i++) {
await new Promise((r) => setTimeout(r, 15))
if (i <= 50) test.tick()
build.step(5, 'Extracting Git history...')
build.step(5, 'Parsing commits...')
build.step(5, 'Generating Changelog...')
build.step(5, 'Generating Release Info...')
}
mb.stop()
console.log(chalk.green('\nAll tasks done!\n'))
}
run()
import chalk from "chalk";
import { createMultiBar } from "wukong-progress";
const mb = createMultiBar();
const buildGroup = mb.group("Build Group");
buildGroup.create(50, {
prefix: chalk.blue("Compile"),
format: "Compile [:bar] :percent",
});
buildGroup.create(30, {
prefix: chalk.cyan("Bundle"),
format: "Bundle [:bar] :percent",
});
const testGroup = mb.group("Test Group");
testGroup.create(20, {
prefix: chalk.magenta("Unit"),
format: "Unit [:bar] :percent",
});
testGroup.create(10, {
prefix: chalk.yellow("E2E"),
format: "E2E [:bar] :percent",
});
async function run() {
const allTasks = [...buildGroup.bars, ...testGroup.bars];
for (let i = 0; i < 50; i++) {
await new Promise((r) => setTimeout(r, 20));
allTasks.forEach((bar) => {
if (!bar.state.complete) bar.tick();
});
}
mb.stop();
console.log(chalk.green("\nGroups completed!\n"));
}
run();
import { Writable } from "node:stream";
import { createMultiBar } from "wukong-progress";
let out = "";
const stream = new Writable({
write(chunk, _, cb) {
out += chunk;
cb();
},
});
const mb = createMultiBar({ stream, json: true });
const bar = mb.create(5, { prefix: "JSON" });
async function run() {
for (let i = 0; i <= 5; i++) {
await new Promise((r) => setTimeout(r, 20));
bar.tick();
}
mb.stop();
console.log("JSON fallback output:");
console.log(out);
}
run();
chalk to color prefixes and bar outputprefix: chalk.green('Build'),
format: chalk.green('Build [:bar] :percent')
node examples/index.mjs
Interactive selection of examples:
Fully compatible with Windows / Linux / macOS
All examples use async/await + chalk colored output
# Node.js native test
yarn test:node
# Vitest snapshot test
yarn test:vitest
# Run all tests
yarn test
FAQs
Lightweight ESM CLI progress bar for Node.js with multiple bars, groups, stages and JSON fallback
The npm package wukong-progress receives a total of 8 weekly downloads. As such, wukong-progress popularity was classified as not popular.
We found that wukong-progress demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.