<a href="https://github.com/barbarbar338/generate-progressbar/issues">Request Feature</a>
yarn add generate-progressbar
npm i generate-progressbar
import { generate } from "generate-progressbar";
const bar = generate(10, 50); // bar length: 10, percentage: 50%, total length: 12
// output []
using custom options
import { generate /* , IProgressbarOptions */ } from "generate-progressbar";
const options /* : IProgressbarOptions*/ = {
empty: "-",
end: "|",
full: "+",
seperator: "o",
start: "|",
};
const bar = generate(10, 50); // bar length: 10, percentage: 50%, total length: 12
// output |++++o-----|
Copyright 2021 Bar DEMRC.
Distributed under the GPL-3.0 License. See LICENSE
for more information.
Feel free to use GitHub's features.
git checkout -b feature/my-feature
)npm run format && npm run lint
)git commit -m 'my awesome feature my-feature'
)git push origin feature/my-feature
)Give a if this project helped you!