Skip to content
hermajanPublic

About

JavaScript library for creating countdowns

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Countdown

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.

About

JavaScript library for creating countdowns

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages