# @vue-layout/countdown

> A package containing a countdown component.

Latest version **5.0.1** (published 2023-11-23) · 0 weekly downloads

## Install

```sh
npm install @vue-layout/countdown
pnpm add @vue-layout/countdown
yarn add @vue-layout/countdown
bun add @vue-layout/countdown
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2023-11-23 |
| First published | 2023-04-10 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 1 |
| Unpacked size | 73.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Peter Placzek |
| Maintainers | tada5hi |
| Keywords | vue, layout, countdown, timer, component |

## Links

- npm: https://www.npmjs.com/package/@vue-layout/countdown
- Repository: https://github.com/tada5hi/vue-layout
- Homepage: https://github.com/tada5hi/vue-layout#readme
- Issues: https://github.com/tada5hi/vue-layout/issues
- npm.io page: https://npm.io/package/@vue-layout/countdown

## Dependencies (1)

- [md5](https://npm.io/package/md5.md) ^2.3.0

## Recent versions

- 5.0.1 (latest) — 2023-11-23
- 5.0.0 — 2023-11-20
- 3.6.2 — 2023-11-06
- 3.0.0 — 2023-06-26
- 2.4.0 — 2023-05-22
- 2.3.0 — 2023-05-22
- 2.0.1 — 2023-04-10
- 2.0.0 — 2023-04-10

## README

# @vue-layout/countdown ⏰

[![npm version](https://badge.fury.io/js/@vue-layout%2Fbasic.svg)](https://badge.fury.io/js/@vue-layout%2Fbasic)
[![CI](https://github.com/Tada5hi/vue-layout/actions/workflows/main.yml/badge.svg)](https://github.com/Tada5hi/vue-layout/actions/workflows/main.yml)

This package provides a customizable countdown timer for Vue3 web applications.
It offers a range of options for customization, including start and end times, step length, and more.
Ideal for time-based events such as auctions, sales, or promotions.

**Table of Contents**

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

## Installation

```
$ npm i --save @vue-layout/countdown
```

## Usage

Register the plugin.

```typescript
import install from '@vue-layout/countdown';
import { createApp } from 'vue'

const app = createApp({})

app.use(install, {
  /* optional options */
})
```

After the component is registered, it can be used as follows.

```vue
<template>
    <VCCountdown
        :auto-start="true"
        :emit-events="true"
        :interval="1000"
        :time="3600 * 1000"
    >
        <template #default="props">
            The countdown is still running for
            <span>
                {{ props.hours }} hour(s),
                {{ props.minutes }} minute(s),
                {{ props.seconds }} second(s)
            </span>.
        </template>
    </VCCountdown>
</template>
```

## License

Made with 💚

Published under [MIT License](./LICENSE).

---
_Source: https://npm.io/package/@vue-layout/countdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
