chalk-animation icon indicating copy to clipboard operation
chalk-animation copied to clipboard

Support for one-liner countdown

Open spidy0x0 opened this issue 2 years ago • 1 comments

i made some changes to the index file to support "one-liner" countdown/timer. Please feel free and make some changes to it so that users who want to use this repo for only terminal countdown can do so easily. Something like

chalkAnimation.rainbow(timeLeft, countDown);

will be fun :)

here is a working example of the solution

asciicast

spidy0x0 avatar Apr 29 '22 22:04 spidy0x0

Hi,

I closed and re-opened your PR just to trigger the CI.

As you can see, both the lint and the tests failed.

You need to run npm run fix to fix the lint issues, then you need to make sure your changes to the code don't break the tests, or edit them if needed (npm test)

bokub avatar May 04 '22 13:05 bokub