timer-countdown_s

3.0.1 • Public • Published

countdown-timer

Countdown timer until the end of the promotion

Таймер обратного отсчёта до конца акции

Installation

npm i timer-countdown_s

Usage

@params

date - promotion end date (string)

renderer - where to draw (object)

headers - DEFAULT { days: 'День Дней Дни', hours: 'Час Часов Часы', minutes: 'Минута Минут Минуты', seconds: 'Секунда Секунд Секунды' } (object)

timer(
  '2020-08-10',
  {
    days: '.days',
    daysTitle: '.days_title',
  
    hours: '.hours',
    hoursTitle: '.hours_title',
  
    minutes: '.minutes',
    minutesTitle: '.minutes_title',
  
    seconds: '.seconds',
    secondsTitle: '.seconds_title',
  
  }
)

Contributing

We also convert the headers into an understandable timer, depending on the number.

Заголовки конвертируются в понятный вид. У Вас не будет 2 дней 8 минуты

##Author

https://github.com/stenready

mastars2319@gmail.com

Package Sidebar

Install

npm i timer-countdown_s

Weekly Downloads

1

Version

3.0.1

License

ISC

Unpacked Size

5.4 kB

Total Files

3

Last publish

Collaborators

  • stenready