Gathering detailed insights and metrics for vue-numeric
Gathering detailed insights and metrics for vue-numeric
Gathering detailed insights and metrics for vue-numeric
Gathering detailed insights and metrics for vue-numeric
@opentiny/vue-numeric
vue-numeric-input
Vue Numeric Input Component
@syncfusion/ej2-vue-inputs
A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users. for Vue
vuetify-numeric
Numeric input components for use with vuetifyjs
Input field component to display a formatted currency value based on Vue.js
npm install vue-numeric
Typescript
Module System
Node Version
NPM Version
84.9
Supply Chain
99.5
Quality
76.1
Maintenance
100
Vulnerability
100
License
JavaScript (61.96%)
Vue (38.04%)
Total Downloads
2,899,876
Last Day
100
Last Week
6,469
Last Month
26,990
Last Year
377,927
MIT License
462 Stars
191 Commits
119 Forks
13 Watchers
10 Branches
16 Contributors
Updated on Jul 01, 2025
Minified
Minified + Gzipped
Latest Version
2.5.1
Package Id
vue-numeric@2.5.1
Unpacked Size
45.67 kB
Size
11.95 kB
File Count
14
NPM Version
8.5.0
Node Version
16.14.2
Published on
Jun 11, 2023
Cumulative downloads
Total Downloads
Last Day
3.1%
100
Compared to previous day
Last Week
-2%
6,469
Compared to previous week
Last Month
-8.4%
26,990
Compared to previous month
Last Year
-10.2%
377,927
Compared to previous year
1
28
Input field component to display a formatted currency value based on Vue.
Works with Vue 2.*
1<script src="https://unpkg.com/accounting-js"></script> 2<script src="https://unpkg.com/vue"></script> 3<script src="https://unpkg.com/vue-numeric"></script> 4 5<script> 6 Vue.use(VueNumeric.default) 7</script>
1$ npm install vue-numeric --save
1import Vue from 'vue' 2import VueNumeric from 'vue-numeric' 3 4export default { 5 name: 'App', 6 7 components: { 8 VueNumeric 9 } 10}
1import Vue from 'vue' 2import VueNumeric from 'vue-numeric' 3 4Vue.use(VueNumeric)
1<template> 2 <vue-numeric currency="$" separator="," v-model="price"></vue-numeric> 3</template> 4 5<script> 6import VueNumeric from 'vue-numeric' 7 8export default { 9 name: 'App', 10 11 components: { 12 VueNumeric 13 }, 14 15 data: () => ({ 16 price: '' 17 }), 18} 19</script>
Set the currency
prop to add a currency symbol within the input.
1<vue-numeric currency="$"></vue-numeric>
Limit the minimum and maximum value by using min
and max
props.
min
defaults to 0
.min
and max
accept String
or Number
values.1<vue-numeric v-bind:min="2000" v-bind:max="10000"></vue-numeric>
minus
defaults to false
(no negative numbers).
1<vue-numeric v-bind:minus="false"></vue-numeric>
By default the decimal value is disabled. To use decimals in the value, add the precision
prop.
precision
accept a String
or Number
numeric value.1<vue-numeric v-bind:precision="2"></vue-numeric>
,
.separator
prop to change the thousands separator.separator
only accepts space
, ,
or .
..
or space
as thousand separator, the decimal separator will be ,
.1<vue-numeric separator="."></vue-numeric>
1<vue-numeric placeholder="only number allowed"></vue-numeric>
By default, when you clean the input the value is set to 0
. You can change this value to fit your needs.
1<vue-numeric :empty-value="1"></vue-numeric>
By default the value emitted for the input event is of type Number
. However you may choose to get a String
instead
by setting the property output-type
to String
.
1<vue-numeric output-type="String"></vue-numeric>
Props | Description | Required | Type | Default |
---|---|---|---|---|
currency | Currency prefix | false | String | - |
currency-symbol-position | Position of the symbol (accepted values: prefix or suffix ) | false | String | prefix |
max | Maximum value allowed | false | Number | 9007199254740991 |
min | Minimum value allowed | false | Number | -9007199254740991 |
minus | Enable/disable negative values | false | Boolean | false |
placeholder | Input placeholder | false | String | - |
empty-value | Value when input is empty | false | Number | 0 |
output-type | Output Type for input event | false | String | Number |
precision | Number of decimals | false | Number | - |
separator | Thousand separator symbol (accepts space , . or , ) | false | String | , |
decimal-separator | Custom decimal separator | false | String | - |
thousand-separator | Custom thousand separator | false | String | - |
read-only | Hide input field and show the value as text | false | Boolean | false |
read-only-class | Class for read-only element | false | String | '' |
allow-clear | Use input type search | false | Boolean | false |
Vue-Numeric is open-sourced software licensed under the MIT license
Hello, I'm Kevin the maintainer of this project in my free time (which is getting lessen these days), if this project does help you in any way please consider to support me. Thanks :smiley:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 7/21 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
68 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More