util/percentage.js
function percentage(num) {
    const MAX_CHARACTERS = 4;
    const relativePercentage = Math.ceil(num * 100 / (100 / MAX_CHARACTERS));

    return `[${'▒'.repeat(relativePercentage)}${' '.repeat(MAX_CHARACTERS - relativePercentage)}]`;
}
function percentage(num) {
    const MAX_CHARACTERS = 4;
    const relativePercentage = Math.ceil(num * 100 / (100 / MAX_CHARACTERS));

    return `[${'▒'.repeat(relativePercentage)}${' '.repeat(MAX_CHARACTERS - relativePercentage)}]`;
}
function percentage ( num ) { const MAX_CHARACTERS = 4 ; const relativePercentage = Math . ceil ( num * 100 / ( 100 / MAX_CHARACTERS ) ) ; return ` ${ '▒'.r e peat(r e lativePercentage)} $ { '  '.r e peat(M A X_CHARACTERS - r lativePercentage)} ] ` }
Nice way to show percentage. Not really necessary.
Nice way to show percentage . Not really necessary .