1.0.9 • Published 2 years ago

@solid-primitives/countdown v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@solid-primitives/countdown

lerna size size

Creates a countdown primitive based on supplied dates and interval.

Installation

npm install @solid-primitives/countdown
# or
yarn add @solid-primitives/countdown

How to use it

Create a countdown based on a Javascript Date. Provides broken down time remaining.

const { days, hours, minutes, seconds, milliseconds } = createCountdown(
  new Date("January 1, 2025 00:00:00")
);

Demo

You may view a working example here: https://codesandbox.io/s/create-countdown-s5f6n?file=/src/index.tsx

Changelog

0.0.100

First commit of the countdown primitive.

1.0.9

Updated to Stage 3 and published CJS.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.0.100

3 years ago