keyload
A progress bar NodeJS
Example
npm install keyload --save
var KeyLoad = var bar = whole: 20 // Total amount for loading bar undone: ' ' // Character for the undone section of the loading bar done: '=' // Character to be used for the finished sectiond of the loading bar middle: '>' // The middle character on the loading bar stream: processstderr // The stream for output // Interval for ticking up the barvar interval = // Interval for setting a random message on the barvar interval2 = // Listener for the bar being finishedbar // Increasing the bar by onebar
API
tick()
Increases the bar by one.
on(eventStr, callback)
Listen for events on the bar. Currently only end
is supported.
message(string)
Put a message on the loader bar. It will be truncated or removed if there is not enough space. This is the alternative to console.log
while using this bar, since it unfortunately breaks it.