npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-countup-plus

v0.3.1

Published

A Vue 3 component that wraps CountUp.js to create animated number transitions

Downloads

19

Readme

Vue CountUp Plus

npm version License: MIT

A Vue component library that wraps CountUp.js to create animated number transitions. Supports Vue 2 & 3, provides component, composable, and directive options, and is written in TypeScript.

✨ Features

  • 🎯 Multiple integration options: Component, Composable, and Directive
  • 💪 Written in TypeScript with full type support
  • 🔄 Vue 2 and Vue 3 compatibility
  • 🎨 Highly customizable animation options
  • 📦 Lightweight with minimal dependencies
  • 🌐 Multiple bundle formats (UMD, ESM, IIFE)
  • 🛠️ Easy to use API with smart defaults

📦 Installation

# npm
npm install vue-countup-plus

# yarn
yarn add vue-countup-plus

# pnpm
pnpm add vue-countup-plus

🚀 Usage

Component Usage

The simplest way to use vue-countup-plus:

<script setup>
import { CountUp } from 'vue-countup-plus'

const options = {
  duration: 2,
  decimalPlaces: 0,
}
</script>

<template>
  <CountUp :end-val="2024" :options="options" />
</template>

Directive Usage

Two ways to use the directive:

Simple Usage

<script setup>
import { vCountup } from 'vue-countup-plus'
</script>

<template>
  <span v-countup="2024">0</span>
</template>

Advanced Usage with Options

<script setup>
import { computed, ref } from 'vue'
import { vCountup } from 'vue-countup-plus'

const endVal = ref(2024)
const countupBinding = computed(() => ({
  endVal: endVal.value,
  duration: 2,
  decimalPlaces: 0,
  useGrouping: true,
  prefix: '$',
  suffix: ' USD'
}))
</script>

<template>
  <span v-countup="countupBinding">0</span>
</template>

Composable Usage

For more control over the animation:

<script setup>
import { onMounted, ref } from 'vue'
import { useCountup } from 'vue-countup-plus'

const el = ref()
const endVal = ref(2024)

const { start, update, reset, pauseResume } = useCountup(el, endVal, {
  duration: 2,
  decimalPlaces: 0,
})

onMounted(() => {
  start()
})
</script>

<template>
  <span ref="el">0</span>
  <button @click="start">
    Start
  </button>
  <button @click="update(Math.random() * 1000)">
    Update
  </button>
  <button @click="reset">
    Reset
  </button>
  <button @click="pauseResume">
    Pause/Resume
  </button>
</template>

⚙️ Configuration Options

All integration methods support the following CountUp.js options:

| Option | Type | Default | Description | |--------|------|---------|-------------| | startVal | number | 0 | The value to start from | | duration | number | 2 | Animation duration in seconds | | decimalPlaces | number | 0 | Number of decimal places | | useGrouping | boolean | true | Use number grouping (i.e. 1,000 vs 1000) | | useEasing | boolean | true | Use easing animation | | smartEasingThreshold | number | 999 | Threshold for smart easing | | smartEasingAmount | number | 333 | Amount for smart easing | | separator | string | ',' | Grouping separator | | decimal | string | '.' | Decimal separator | | prefix | string | '' | Text before the number | | suffix | string | '' | Text after the number |

📄 License

MIT License 2024