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

@nawazaideveloperr/counter-plugin

v1.0.2

Published

A lightweight animated counter plugin for Angular, React, and Vanilla JS.

Readme

🚀 Counter Plugin (Angular)

A lightweight animated counter component for Angular.

Perfect for dashboards, statistics cards, analytics panels, and animated UI metrics.

The plugin supports customizable inputs like start, end, step, timer, and also prefix, suffix, and once for flexible UI counters.


✨ Features

  • ⚡ Lightweight and fast
  • 🧩 Built for Angular
  • 🔧 Fully customizable inputs
  • 🎯 Smooth animated number counting
  • 🔁 Optional repeat animation
  • 🧮 Supports prefix and suffix formatting

📦 Installation

Install the package using npm:

npm install @nawazaideveloperr/counter-plugin

🚀 Usage


Angular

Step 1: Import Module

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { CounterModule } from '@nawazaideveloperr/counter-plugin';

@NgModule({
  imports: [
    BrowserModule,
    CounterModule
  ]
})
export class AppModule {}

Step 2: Use Component

<lib-counter
  [start]="0"
  [end]="1000"
  [timer]="2000"
  [step]="2">
</lib-counter>

Angular Standalone Component

For Angular 15+ standalone components, you can import the module directly inside the component.

import { Component } from '@angular/core';
import { CounterModule } from '@nawazaideveloperr/counter-plugin';

@Component({
  selector: 'app-home',
  standalone: true,
  imports: [CounterModule],
  templateUrl: './home.component.html',
  styleUrl: './home.component.scss',
})
export class HomeComponent {}

⚙️ Inputs / Props

| Input | Type | Default | Description | | ------ | ------- | ------- | ------------------------------------------------------------------------ | | start | number | 0 | Starting number of the counter | | end | number | 1000 | Ending number of the counter | | timer | number | 1000 | Animation duration in milliseconds | | step | number | 5 | Increment step size | | prefix | string | "" | Text displayed before the number (example: $) | | suffix | string | "" | Text displayed after the number (example: +, %) | | once | boolean | true | If true, counter runs only once. If false, it can trigger multiple times |


🎯 Examples

Basic Counter

<lib-counter
  [start]="0"
  [end]="500"
  [timer]="1500"
  [step]="5">
</lib-counter>

Counter with Prefix

<lib-counter
  [start]="0"
  [end]="10000"
  [prefix]="'$'">
</lib-counter>

Output:

$10000

Counter with Suffix

<lib-counter
  [start]="0"
  [end]="100"
  [suffix]="'%'">
</lib-counter>

Output:

100%

Counter with Plus Sign

<lib-counter
  [start]="0"
  [end]="5000"
  [suffix]="'+'">
</lib-counter>

Output:

5000+

Counter with Repeat Animation

<lib-counter
  [start]="0"
  [end]="1000"
  [timer]="2000"
  [once]="false">
</lib-counter>

If once is false, the counter animation can run multiple times when triggered.


💡 Use Cases

  • Dashboard statistics
  • Website visitor counters
  • Sales analytics
  • Marketing metrics
  • Portfolio statistics
  • Growth indicators

📄 License

MIT License

GitHub: https://github.com/devloper2017/counter-plugin


⭐ Support

If you like this project, please give it a star ⭐ on GitHub.

👉 https://github.com/devloper2017/counter-plugin


🤝 Contributing

Pull requests are welcome.

If you find a bug or want to improve the plugin:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Submit a pull request