# vue-time-ticker

> This component provides functionality to display realtime second by second update of the time difference between passed time and the current time. All mounted components will use the single scheduler, so all repaint will be smooth enough. The scheduler is

Latest version **0.1.3** (published 2020-04-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-time-ticker
pnpm add vue-time-ticker
yarn add vue-time-ticker
bun add vue-time-ticker
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-04-17 |
| First published | 2020-03-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrey Matushenko |
| Maintainers | fundlg |
| Keywords | vuejs, time, ticker, counter, realtime |

## Links

- npm: https://www.npmjs.com/package/vue-time-ticker
- Repository: https://github.com/fundlg/vue-time-ticker
- Issues: https://github.com/fundlg/vue-time-ticker/issues
- npm.io page: https://npm.io/package/vue-time-ticker

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2020-04-17
- 0.1.2 — 2020-04-15
- 0.1.1 — 2020-03-20
- 0.1.0 — 2020-03-20

## README

# vue-time-ticker

This component provides functionality to display realtime second by second update
of the time difference between passed time and the current time. All mounted components will use the single scheduler, so all repaint will be smooth enough. The scheduler is lazy, so if you have no mounted components, you will have zero timeouts.

### Preview

![vue-time-ticker-demo.gif](https://s6.gifyu.com/images/vue-time-ticker-demo9d73226628fe821f.gif)

### Setup

```
yarn add vue-time-ticker
```

or using `npm`

```
npm install vue-time-ticker
```

### Usage

```
<template>
  <div>
    <vue-time-ticker :value="formattedValue" format="HOURS" />
  </div>
</template>

<script>
import VueTimeTicker from 'vue-time-ticker';

export default {
  name: 'Counter',
  components: { VueTimeTicker },
  computed: {
    formattedValue() {
      // any source of data for your component
      return this.value;
    },
  },
};
</script>

```

## Props descriptions

| Prop name |  Type  |           Example values            | Description                                                                                         |
| :-------- | :----: | :---------------------------------: | --------------------------------------------------------------------------------------------------- |
| value     | String |        2020-03-20T00:00:00z         | Should be valid format for default JavaScript `new Date()` constructor                              |
| format    | String | One of: `HOURS`,`MINUTES`,`SECONDS` | Represents format of displaying the result, `HOURS`: `00:00:00`, `MINUTES`: `00:00`,`SECONDS`: `00` |

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