UNPKG

javascript-timer

Version:

Simple countdown utility to get remaining days, hours, minutes, and seconds

17 lines (10 loc) 364 B
# Countdown Simple countdown utility to get remaining days, hours, minutes, and seconds till a target date. ## Installation ```bash npm install javascript-timer import { countDown } from "javascript-timer"; const result = countDown("2025-05-01T00:00:00Z"); console.log(result); // Output: // { days: 364, hours: 8, minutes: 22, seconds: 10 }