UNPKG

@coders-tm/vue-number-format

Version:

Easy formatted numbers, currency and percentage with input/directive mask for Vue.js

40 lines (27 loc) 1.8 kB
[![npm Version](https://badgen.net/npm/v/@coders-tm/vue-number-format?color=green)](https://www.npmjs.com/package/@coders-tm/vue-number-format) [![npm Downloads](https://badgen.net/npm/dt/@coders-tm/vue-number-format?color=green)](https://www.npmjs.com/package/@coders-tm/vue-number-format) [![github Stars](https://badgen.net/github/stars/coders-tm/vue-number-format?color=green)](https://github.com/coders-tm/vue-number-format) [![Bundlephobia](https://badgen.net/bundlephobia/minzip/@coders-tm/vue-number-format?color=green)](https://bundlephobia.com/result?p=@coders-tm/vue-number-format) [![License](https://badgen.net/github/license/coders-tm/vue-number-format?color=green)](https://github.com/coders-tm/vue-number-format/blob/master/LICENSE) [![Sponsor Me on GitHub](https://img.shields.io/badge/sponsor-me-blue?logo=github)](https://github.com/sponsors/dipaksarkar) # vue-number-format <a href="https://vue-number-format.netlify.app" rel="nofollow"><img src="docs/vue-number-format.gif" alt="" style="width: 100%;"></a> Vue Number Format is used to format a number using fixed-point notation. It can be used to format a number with a specific number of digits to the right of the decimal. ## Installation ```bash npm install @coders-tm/vue-number-format or yarn add @coders-tm/vue-number-format ``` ## Features - Lightweight - Dependency free - Component or Directive flavour - Format as you type - Built-in validation - Supports both Vue 3 and Vue 2. ## Documentation Please refer to the [project home page](https://vue-number-format.netlify.app) for a detailed documentation. ## 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/dipaksarkar)