# vue-simple-countup

> A Vue Component

Latest version **1.0.6** (published 2019-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-simple-countup
pnpm add vue-simple-countup
yarn add vue-simple-countup
bun add vue-simple-countup
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2019-05-25 |
| First published | 2019-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 56.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | lingf |
| Maintainers | lingf |

## Links

- npm: https://www.npmjs.com/package/vue-simple-countup
- npm.io page: https://npm.io/package/vue-simple-countup

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.5.11
- [countup.js](https://npm.io/package/countup.js.md) ^2.0.4

## Recent versions

- 1.0.6 (latest) — 2019-05-25
- 1.0.5 — 2019-05-25
- 1.0.3 — 2019-05-25
- 1.0.2 — 2019-05-25
- 1.0.1 — 2019-05-25
- 1.0.0 — 2019-05-25

## README

# vue-simple-countup

> 用vue简单封装的 CountUp.js。Vue.js component wrap for CountUp.js

简单易用、追踪了目标值变化、添加自动启动；
支持 CountUp.js 的大部分选项。

## Installation

```bash
$ npm install --save vue-simple-countup
```

## Usage

```html
<simple-count-up ref="myCountUp" v-modle.number="endVal" :auto="!0"></simple-count-up>
```

```javascript
import Vue from 'vue';
import SimpleCountUp from 'vue-simple-countup';
Vue.component(SimpleCountUp.name, SimpleCountUp);

export default {
  name: 'app',
  computed: {
    simpleCountUp() {
      return this.$refs.myCountUp;
    }
  },
  data() {
    return {
      endVal: 5555
    }
  },
  methods: {
    handleClick() {
      // start where you want
      this.simpleCountUp.start();
    }
  }
}
```

## Options
| Property | Description | type |	default	|
| -----------------  | ---------------- | :--------: | :----------: |
| v-model | value | Number | *required* |
| auto | autostart | Boolean | `false` |

more options see [countUp.js#Options](https://github.com/inorganik/countUp.js#Options) 

### Not Support Options
| Property | Description |
| -----------------  | ---------------- |
| smartEasingThreshold | *not support* |
| smartEasingAmount | *not support* |
| easingFn | *not support* |
| formattingFn | *not support* |
| numerals | *not support* |

## Methods
| Method Name | Description | Example |
| :--------: | ----- | ----- |
| start | start the countUp | simpleCountUp.start(completeMethod) |
| pauseResume | pause/resume the countUp | simpleCountUp.pauseResume() |
| update | update value | simpleCountUp.update(6666) |
| reset | reset the countUp | simpleCountUp.reset() |

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