# vue-currency-input

> Easy input of currency formatted numbers for Vue.js.

Latest version **3.2.2** (published 2025-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-currency-input
pnpm add vue-currency-input
yarn add vue-currency-input
bun add vue-currency-input
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.2.2 |
| Published | 2025-12-17 |
| First published | 2019-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 60.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 693 |
| Author | Matthias Stiller |
| Maintainers | dm4t2 |
| Keywords | vue, input mask, currency input, money input, number format, ECMA-402 |

## Links

- npm: https://www.npmjs.com/package/vue-currency-input
- Repository: https://github.com/dm4t2/vue-currency-input
- Homepage: https://dm4t2.github.io/vue-currency-input
- Issues: https://github.com/dm4t2/vue-currency-input/issues
- npm.io page: https://npm.io/package/vue-currency-input

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.2.2 (latest) — 2025-12-17
- 3.2.1 — 2025-01-19
- 3.2.0 — 2025-01-18
- 3.1.0 — 2024-02-07
- 3.0.5 — 2023-05-26
- 3.0.4 — 2023-03-30
- 3.0.3 — 2022-12-03
- 3.0.2 — 2022-10-30
- 3.0.1 — 2022-10-02
- 3.0.0 — 2022-07-02
- 2.5.1 — 2022-06-13
- 2.5.0 — 2022-06-13
- 2.4.0 — 2022-01-01
- 2.3.0 — 2021-12-11
- 2.2.0 — 2021-11-29
- … 77 more at https://npm.io/package/vue-currency-input/versions

## README

[![codecov](https://codecov.io/gh/dm4t2/vue-currency-input/graph/badge.svg?token=CAgHbikCov)](https://codecov.io/gh/dm4t2/vue-currency-input)
[![npm Version](https://badgen.net/npm/v/vue-currency-input?color=green)](https://www.npmjs.com/package/vue-currency-input)
[![npm Downloads](https://badgen.net/npm/dw/vue-currency-input?color=green)](https://www.npmjs.com/package/vue-currency-input)
[![Bundlephobia](https://badgen.net/bundlephobia/minzip/vue-currency-input?color=green)](https://bundlephobia.com/result?p=vue-currency-input)
[![License](https://badgen.net/github/license/dm4t2/vue-currency-input?color=green)](https://github.com/dm4t2/vue-currency-input/blob/main/LICENSE)

# Vue Currency Input

[![](docs/vue-currency-input.gif)](https://dm4t2.github.io/vue-currency-input)

Vue Currency Input allows an easy input of currency formatted numbers based on the [ECMAScript Internationalization API (Intl.NumberFormat)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat).

Built on top of the [Vue Composition API](https://v3.vuejs.org/guide/composition-api-introduction.html), it enables you to decorate _any_ input component with currency format capabilities.

## Features

- Turns the input component of your favorite framework (for example [Vuetify](https://vuetifyjs.com/en/components/text-fields/), [Quasar](https://quasar.dev/vue-components/input) or [Element Plus](https://element-plus.org/en-US/component/input.html)) into a currency input field
- Supports both Vue 2 _and_ Vue 3
- Built on standards: Ensures the right locale dependent formatting by using [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat)
- Unobtrusive input by hiding the formatting on focus
- Built-in value range validation

## Getting started

Please read the [guide](https://dm4t2.github.io/vue-currency-input/guide) to get started or check out the [playground](https://dm4t2.github.io/vue-currency-input/playground) to see it in action.

## Support me

If you find my work helpful, or you want to support the development, star the repo or buy me a coffee:

[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D6SXEA)

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