pitaj / multi-progress Goto Github PK
View Code? Open in Web Editor NEWMultiple progress bars based on the "progress" package
License: MIT License
Multiple progress bars based on the "progress" package
License: MIT License
const barOptions = {
head: ">", // this character never shows up
complete: "=",
incomplete: " ",
width: 40,
total: tickCount};
I was just wondering when you think you will push a new version to npm. Seems like the code is ready to go?
Thanks for a nice library! ๐
> node -v
v7.7.3
Inside of two classes I'm doing..
this.progress = this.prog.newBar(this.formatString, {
complete: '๐ฅ',
incomplete: '๐ฉ',
width: 45,
total: total
});
...
this.progress.tick()
but the bars are being rendered on the same line? Are they meant to be stacked? A screenshot would be nice on this repo.
There are some messages I output using bar.interupt, this no longer works correctly leaving static copies of the bars through out the console when using this.
It seems that the cursor gets at the end of the line of the just modified progress bar, that could gamble the terminal if something is printed (an exception, for example). Restore the position of the cursor at the end of the lines so output can be cleanly shown.
Allign the different fields of each progressbar to show it nicer. So far seems it would be just enough with the download name, so I would pad them with spaces up to the lenght of the biggest one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.