Search by

hermajan / countdown

hermajan

JavaScript library for creating countdowns.

Package info

github.com/hermajan/countdown

Homepage

Language:JavaScript

pkg:composer/hermajan/countdown

Statistics

Installs: 1 646

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

v0.3.0 2023-11-07 00:18 UTC

This package is auto-updated.

Last update: 2026-08-27 00:48:26 UTC


README

GitHub Packagist NPM

JavaScript library for creating countdowns.

✨ Features

  • Lightweight & Dependency-free: Pure JavaScript library with zero external dependencies.
  • Multi-language Support: Built-in word inflections and localization for English (en), Czech (cs), and Slovak (sk).
  • Flexible View Modes (data-view):
    • blank (default): Automatically hides leading zero units until the first non-zero unit appears.
    • rest: Displays only non-zero units.
    • all: Shows all time units (years, days, hours, minutes, seconds).
  • Customizable Attributes: Easily configure target times (datetime), prefixes (data-remains), suffixes (data-after), ended messages (data-ended), languages (data-lang), and view modes.
  • Automatic Updates: Refreshes every second automatically.
  • Easy Installation: Available via npm and Composer.

📥 Installation

Install this via one of package managers:

  • Composer - composer require hermajan/countdown
  • npm - npm i @hermajan/countdown

📚 Documentation

Usage and documentation for this project is in wiki. Examples are visible on website.