New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@hyunseob/countdown

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyunseob/countdown

A simple, lightweight countdown module


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created

countdown

A simple, lightweight countdown module

Example

const countdown = new Countdown(new Date(2017, 10, 30, 23, 59, 59)); // Date must be a future. If you put the past, it will always return zero values.
const $countdown = $('#countdown');

countdown.observe(({ days, hours, minutes, seconds }) => {
  $countdown.text(`${days}:${hours}:${minutes}:${seconds}`);
});

Keywords

FAQs

Package last updated on 06 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts