# vue-twitter-counter

> Counter component inspired in Twitter with Vue

Latest version **0.2.3** (published 2017-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-twitter-counter
pnpm add vue-twitter-counter
yarn add vue-twitter-counter
bun add vue-twitter-counter
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2017-11-29 |
| First published | 2017-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Lucas Leandro |
| Maintainers | lucasleandro1204 |
| Keywords | ui, ux, svg, vue, vuejs, counter, twitter, progress, animation, progress-animations |

## Links

- npm: https://www.npmjs.com/package/vue-twitter-counter
- npm.io page: https://npm.io/package/vue-twitter-counter

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^2.4.4

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.3 (latest) — 2017-11-29
- 0.2.2 — 2017-11-29
- 0.2.1 — 2017-11-12
- 0.2.0 — 2017-11-12
- 0.1.1 — 2017-11-11
- 0.1.0 — 2017-11-11

## README

# Vue Twitter Counter

Counter component inspired in Twitter with Vue

![](https://github.com/LucasLeandro1204/vue-twitter-counter/raw/master/static/counter-example.gif)

> You can see examples in [here](https://lucasleandro1204.github.io/vue-twitter-counter/)

## Getting started

### Install
Simple install it via npm (or yarn if you want to)

``$ npm install vue-twitter-counter --save``

### Usage

It's super easy to use it =)

``` vue
  <textarea v-model="message"></textarea>
  <vue-twitter-counter :current-length="message.length"></vue-twitter-counter>
```
It's super easy to use it =)
The only thing you HAVE to do is pass the `current-length` prop.

### Props list

| Prop          | Type    | Default  | Description                                |
|:-------------:|:-------:|:--------:|:------------------------------------------:|
| warnLength    | Number  | 20       | The min rest to show the warns             |
| dangerAt      | Number  | 280      | The length to be in danger                 |
| currentLength | Number  | REQUIRED | The current length of whatever you want to |
| underlay      | String  | #ccd6dd  | Underlay counter color                     |
| safe          | String  | #1da1f2  | Safe color                                 |
| warn          | String  | #ffad1f  | Warn color                                 |
| danger        | String  | #e0245e  | Danger color                               |
| round         | Boolean | false    | Round progress circle edges                |
| animate       | Boolean | false    | Animate the progress circle                |
| speed         | Number  | 150      | The animation speed in ms                  |

_Color props are required to be HEX with hash prefix, they are validate =)_

## Development

If you want to help this project, first of all clone it

``$ git clone git@github.com:LucasLeandro1204/vue-twitter-counter.git``

To run for development run

``$ npm run dev``

This will host the application at localhost:8080

To build for production run

``$ npm run build``

The above command bundle the app and also features minification to help reduce file size

## License

MIT

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