Skip to content

meandavejustice/psuedo-progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pseudo Progress

from the original source:

A pseudo progress indicator.

This is just a silly shell animation that was meant to simulate how lots of
tests would be run on an add-on file. It sort of looks like a torrent file
randomly getting filled in.

example usage gif

usage

const PseudoProgress = require('./index.js');

const p = new PseudoProgress({
  preamble: 'Testing PseudoProgress', // message to show the user before animation. defaults to ''
  setInterval: setInterval, // optionally override setInterval
  clearInterval: clearInterval, // optionally override clearInterval
  stdout: process.stdout // optionally overide process.stdout
});

p.animate();

setTimeout(() => p.finish(), 4000);

attribution

pulled from mozilla/jpm

original author is @kumar303

License

MPL 2.0

About

shell progress animation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published