Cntdwn
Cntdwn is a library that calculates the difference of time between an arbitrary date and the current date and executes a callback function each second passing the new difference of time.
Installation
Just run npm install cntdwn
or yarn add cntdwn
Example
const Cntdwn = ; const countdown = 2019 1 1 { console; ifdays < 10 countdown; }; countdownstart;