# vue-count-component

> A count-to component of vue

Latest version **1.0.6** (published 2018-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-count-component
pnpm add vue-count-component
yarn add vue-count-component
bun add vue-count-component
```

## 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 | 2018-12-02 |
| First published | 2018-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 49.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | xiaopingbuxiao |
| Maintainers | xiaopingbuxiao |
| Keywords | count, vue-count, count-to, vue-count-to |

## Links

- npm: https://www.npmjs.com/package/vue-count-component
- Repository: https://github.com/xiaopingbuxiao/vue-count-component
- Issues: https://github.com/xiaopingbuxiao/vue-count-component/issues
- npm.io page: https://npm.io/package/vue-count-component

## Dependencies (2)

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

## Recent versions

- 1.0.6 (latest) — 2018-12-02
- 1.0.5 — 2018-12-02
- 1.0.4 — 2018-12-02
- 1.0.3 — 2018-12-02
- 1.0.2 — 2018-12-01
- 1.0.1 — 2018-12-01
- 1.0.0 — 2018-12-01

## README

# vue-count-componet

>  A count-to component of vue

## Use Setup

``` bash
# install dependencies
npm install vue-count-component -S

# use
main.js
import CountComponent from 'vue-count-component' 
Vue.use(CountComponent)

everyone.vue
import CountComponent from 'vue-count-component' 
components:{
    CountComponent
}

<count-component :startVal='0' :endVal='2018'/></count-component>
```
* startVal =  起始值 the value you want to begin at 
* endVal = 结束值 the value you want to arrive at
* decimals = 小数点后保留位数 (optional) number of decimal places in number, default 0
* duration = 时间 (optional) duration in seconds, default 2
* options = see [countUp.js](https://github.com/inorganik/countUp.js#readme) or [demo](http://inorganik.github.io/countUp.js/)

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