# slow-numbers

> Typed vanilla JavaScript plugin for animated number transitions.

Latest version **2.0.0** (published 2026-04-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install slow-numbers
pnpm add slow-numbers
yarn add slow-numbers
bun add slow-numbers
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-04-25 |
| First published | 2017-08-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | sash-ok |
| Keywords | numbers, animation, typescript |

## Links

- npm: https://www.npmjs.com/package/slow-numbers
- Repository: https://github.com/Sash-OK/slowNumbers
- Homepage: https://github.com/Sash-OK/slowNumbers#readme
- Issues: https://github.com/Sash-OK/slowNumbers/issues
- npm.io page: https://npm.io/package/slow-numbers

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2026-04-25
- 1.0.0 (legacy) — 2017-08-03

## README

# slowNumbers
 
 ## [Demo page](https://sash-ok.github.io/slowNumbers/)

```bash
npm install slow-numbers
```

## Version 2: npm + TypeScript without jQuery

The package is built from TypeScript and exposes types through the `types` field.

```typescript
import slowNumbers from 'slow-numbers';

const counter = slowNumbers('.js-result', {
  start: 1000,
  format: true
});

counter.update({
  end: 5000,
  slowSpeed: 5,
  format: true
});
```

You can also work directly with an element:

```typescript
import { SlowNumber } from 'slow-numbers';

const element = document.querySelector('.js-result');

if (element) {
  const counter = new SlowNumber(element, { start: 1000 });
  counter.update({ end: 5000 });
  counter.stop();
}
```

## Browser Usage

```html
<script src="js/slowNumbers.js"></script>
```

## Initial Setup
Use this when the counter should start from a specific number on page load instead of 0.
```javascript
document.addEventListener('DOMContentLoaded', () => {
  const counter = slowNumbers(selector, {
    start: 1000
  });
});
```

### Updating the Number

```javascript
counter.update({
    end: 5000
});
```

### Optional Parameters

```javascript
counter.update({
    format: true, // Splits 10000000 into 10 000 000
    slowSpeed: 5 // Slowdown speed: higher values make the animation slower
});
```

### Stopping the Animation

```javascript
counter.stop();
```

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