View on GitHub•Published at December 05, 2021, 12:57 GMT+0
`count-up-down` is a npm package that we can use to get the units required to construct a countdown or count-up timer, such as years, months, days, hours, minutes, and seconds. A demo can be seen here: https://imballinst.github.io/count-up-down. At the time of writing, it is a count down to 2022. After 2022 kicks in, then it will become a count-up.
This package is published in jsDelivr, so we can use it directly in a page, along with our stylings.
It can also be installed as a dependency in our `package.json`, which we can use like the following: