Installations
npm install @titou10/v-money
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
20.10.0
NPM Version
10.4.0
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (92.4%)
JavaScript (7.6%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
titou10titou10
Download Statistics
Total Downloads
7,921
Last Day
12
Last Week
46
Last Month
195
Last Year
1,348
GitHub Statistics
10 Stars
14 Commits
3 Forks
2 Watching
1 Branches
2 Contributors
Bundle Size
72.36 kB
Minified
25.45 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.2.0
Package Id
@titou10/v-money@1.2.0
Unpacked Size
11.12 kB
Size
4.34 kB
File Count
13
NPM Version
10.4.0
Node Version
20.10.0
Publised On
27 Jan 2024
Total Downloads
Cumulative downloads
Total Downloads
7,921
Last day
-25%
12
Compared to previous day
Last week
-19.3%
46
Compared to previous week
Last month
112%
195
Compared to previous month
Last year
-33.7%
1,348
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
5
v-money mask for Vue.js
TL;DR;
A"v-money"
directive for Vue.js that sets the masked and unmasked value of an"input"
component (eg the "v-text-field"
component from vuetify)
It is a specialized form of amask
It is based on@vuejs-tips/v-money
Install
1npm install @titou10/v-money --save 2yarn add @titou10/v-money 3bower install @titou10/v-money --save
Usage
A. Globally
1import Vue from "vue"; 2import money from "@titou10/v-money"; 3 4// register directive v-money 5Vue.use(money, { precision: 4 });
B. Use as directive:
1<template> 2 <input v-model.lazy="price" v-money="money" /> 3</template> 4 5<script> 6 import { money } from "@titou10/v-money"; 7 export default { 8 directives: { money }, 9 data() { 10 return { 11 price: 123.45, 12 rawPrice: null, 13 money: { 14 decimal: ",", 15 thousands: ".", 16 prefix: "R$ ", 17 suffix: " #", 18 precision: 2, 19 unmaskedVar: "rawPrice" 20 } 21 }; 22 } 23 }; 24</script>
v-money properties
property | Required | Type | Default | Description |
---|---|---|---|---|
precision | true | Number | 2 | How many decimal places |
decimal | false | String | "." | Decimal separator |
thousands | false | String | "," | Thousands separator |
prefix | false | String | "" | Currency symbol followed by a Space, like "R$ " |
suffix | false | String | "" | Percentage for example: " %" |
unmaskedVar | false | String | null | name of an attribute in "data" to receive the unmasked value |
Why this package?
This package has been created because the@vuejs-tips/v-money
does not provide a way to get the unmasked value when it is used as a directive
Most of the credit goes to:
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/14 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
2.9
/10
Last Scanned on 2025-01-27
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