javascript-timer
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Countdown

Simple countdown utility to get remaining days, hours, minutes, and seconds till a target date.

Installation

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 }

/javascript-timer/

    Package Sidebar

    Install

    npm i javascript-timer

    Weekly Downloads

    51

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    4.99 kB

    Total Files

    7

    Last publish

    Collaborators

    • altafsk121999