@locr-company/progress
v1.1.5
Published
A class for handling progress
Downloads
11
Readme
1. Installation
npm install @locr-company/progress
2. How to use
import Progress from '@locr-company/progress';
const progress = new Progress(1_000);
progress.incrementCounter();
console.log(progress.Counter); // 1
console.log(progress.PercentageCompleted); // 0.1
console.log(progress.toFormattedString()); // progress => 1/1000 (0.10%); elapsed: 00:00:01; ete: 00:16:39; eta: 2021-10-10 20:00:01
progress.setCounter(1000);
console.log(progress->PercentageCompleted); // 100
3. Development
Clone the repository
git clone [email protected]:locr-company/js-progress.git
cd js-progress/.git/hooks && ln -s ../../git-hooks/* . && cd ../..
npm install
4. Publish a new version
# update CHANGELOG.md file
npm version <major>.<minor>.<patch>
git push && git push origin --tags