console_processbar
v1.0.11
Published
a simple console process bar
Readme
Console Process Bar
A lightweight and easy-to-use console progress bar for Node.js.
Perfect for loops, CLI tools, and any task where you want quick visual feedback.
📦 Installation
npm install console_processbar🚀 Import as Needed
const ProcessBar = require("console_processbar");
// Or
import ProcessBar from "console_processbar";🚀 Usage
// Initialize the bar
// total → total number of iterations
// title → title shown before the progress bar
const total = 100
const bar = new ProcessBar(total, "Processing Items");
// Run through your steps
for (let i = 0; i < total; i++) {
// ... your logic here ...
bar.next(); // Update progress
}
// Finish the bar
bar.finish();