countdown-promise
Create a promise that resolves after n counts.
Install
$ npm install --save countdown-promise
Usage
const Countdown = ; const countdown = countdownpromise countdown// Nothing happens yet. countdown // (note this is the 5th `count`)// "Done!" is printed on console.
API
Countdown()
Returns an Object
with a promise
property and a function to count()
.
License
MIT © Gerardo Munguia