0.0.2 β’ Published 3 years ago
generate-progressbar v0.0.2
π¦ Installation
- Using yarn:
yarn add generate-progressbar
- Using npm:
npm i generate-progressbar
π€ Usage
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-----|
π License
Copyright Β© 2021 BarΔ±Ε DEMΔ°RCΔ°.
Distributed under the GPL-3.0 License. See LICENSE
for more information.
𧦠Contributing
Feel free to use GitHub's features.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/my-feature
) - Run prettier and eslint (
npm run format && npm run lint
) - Commit your Changes (
git commit -m 'my awesome feature my-feature'
) - Push to the Branch (
git push origin feature/my-feature
) - Open a Pull Request
π₯ Show your support
Give a βοΈ if this project helped you!
π Contact
- Mail: demirci.baris38@gmail.com
- Discord: https://discord.gg/BjEJFwh
- Instagram: https://www.instagram.com/ben_baris.d/