1.0.6 • Published 4 years ago
loadbar.js v1.0.6
LoadBar Nodejs
Example
const load = require('loadbar.js')
const loadBar = new load()
loadBar.start()
let index = 0
setInterval(() => {
index++
loadBar.update(index, 100)
}, 1000)
Syntax
const load = require('loadbar.js') // import module
const loadBar = new load() // start class
loadBar.start() // starts the bar (draws on the console)
loadBar.update(current value, final value) // update the bar
loadBar.finish() // Shows the console cursor, and skips a line