# svelte-number-displayer

> Svelte number displayer

Latest version **1.0.2** (published 2023-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install svelte-number-displayer
pnpm add svelte-number-displayer
yarn add svelte-number-displayer
bun add svelte-number-displayer
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-06-09 |
| First published | 2023-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | n4n5 - n4n5.dev |
| Maintainers | n4n5 |
| Keywords | svelte, number, fade, animation, svelte-components, sveltejs |

## Links

- npm: https://www.npmjs.com/package/svelte-number-displayer
- Repository: https://github.com/Its-Just-Nans/svelte-number-displayer
- Issues: https://github.com/Its-Just-Nans/svelte-number-displayer/issues
- npm.io page: https://npm.io/package/svelte-number-displayer

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2023-06-09
- 1.0.1 — 2023-06-09
- 1.0.0 — 2023-06-09

## README

# svelte-number-displayer

Display animated number easily with Svelte. Check the [demo](https://its-just-nans.github.io/svelte-number-displayer-demo) !

## Usage

```svelte
<script>
import Displayer from "svelte-number-displayer";
</script>

<Displayer value={20} timing={40} />
```

## Options

- `value`: the end value
- `timing`: the duration of the animation
- `defaultValue`: the start value (default `0`)
- `showTimer`: log the time of the animation
- `fnRound`: the rounding function
- `easing`: the easing function the change the linearity of the animation

## Other components

```svelte
<script>
import { DisplayerTweened } from "svelte-number-displayer";
import Displayer from "svelte-number-displayer";
</script>

<!-- it use the requestAnimationFrame function -->
<Displayer value={20} timing={40} />

<!-- it use the svelte tweened function -->
<DisplayerTweened value={20} timing={40} />
```

## License

Licensed under the MIT License - [LICENSE](LICENSE)

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