@locr-company/progress
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Node.js version support codecov github_workflow_status Quality Gate Status github_tag NPM Version

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 git@github.com: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

Readme

Keywords

Package Sidebar

Install

npm i @locr-company/progress

Weekly Downloads

143

Version

1.1.5

License

MIT

Unpacked Size

87.3 kB

Total Files

24

Last publish

Collaborators

  • locr-company