{"analyzedAt":"2022-07-12T14:00:33.672Z","collected":{"metadata":{"name":"@jonathanczx/v-money","scope":"jonathanczx","version":"0.1.5","description":"Vue currency input/directive mask","keywords":["vue","input","mask","directive","currency","money"],"date":"2019-03-07T01:58:02.564Z","author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"publisher":{"username":"jonathanczx","email":"jonathanczx@gmail.com"},"maintainers":[{"username":"jonathanczx","email":"jonathanczx@gmail.com"}],"contributors":[{"name":"Jonathan Chan","email":"jonathanczx@gmail.com","url":"https://github.com/jonathanczx"}],"repository":{"type":"git","url":"git+https://github.com/jonathanczx/v-money.git"},"links":{"npm":"https://www.npmjs.com/package/%40jonathanczx%2Fv-money","homepage":"https://github.com/jonathanczx/v-money#readme","repository":"https://github.com/jonathanczx/v-money","bugs":"https://github.com/jonathanczx/v-money/issues"},"license":"MIT","dependencies":{"webpack":"^4.29.5"},"devDependencies":{"@vue/babel-preset-app":"^3.4.1","babel-jest":"^24.1.0","jest":"^21.2.1","mini-css-extract-plugin":"^0.5.0","npm-check-updates":"^2.13.0","size-limit":"^0.11.6","vue":"^2.6.7","vue-loader":"^15.6.4","vue-template-compiler":"^2.6.7","vuetify":"^0.16.7","webpack-cli":"^3.2.3"},"releases":[{"from":"2022-06-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2022-04-13T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2022-01-13T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":1},{"from":"2021-07-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":1},{"from":"2020-07-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":1}],"hasTestScript":true,"hasSelectiveFiles":true,"readme":"# v-money Mask for Vue.js\n\nA version of the v-money package, current differences are the onfocus function where position of cursor has been changed to start of string.\n\n## Features\n\n- Lightweight (<2KB gzipped)\n- Dependency free\n- Mobile support\n- Component or Directive flavors\n- Accept copy/paste\n- Editable\n\nFor other types of mask, use [vue-the-mask](https://vuejs-tips.github.io/vue-the-mask)\n\n## Usage\n\n### A. Globally\n\n```js\nimport Vue from 'vue'\nimport money from 'v-money'\n\n// register directive v-money and component <money>\nVue.use(money, {precision: 4})\n```\n\n### B. Use as component: https://jsfiddle.net/auom8st8/\n\n```html\n<template>\n  <div>\n    <money v-model=\"price\" v-bind=\"money\"></money> {{price}}\n  </div>\n</template>\n\n<script>\n  import {Money} from 'v-money'\n\n  export default {\n    components: {Money},\n\n    data () {\n      return {\n        price: 123.45,\n        money: {\n          decimal: ',',\n          thousands: '.',\n          prefix: 'R$ ',\n          suffix: ' #',\n          precision: 2,\n          masked: false\n        }\n      }\n    }\n  }\n</script>\n```\n\n### C. Use as directive: https://jsfiddle.net/nj3cLoum/2/\nMust use `vmodel.lazy` to bind works properly.\n```html\n<template>\n  <div>\n    <input v-model.lazy=\"price\" v-money=\"money\" /> {{price}}\n  </div>\n</template>\n\n<script>\n  import {VMoney} from 'v-money'\n\n  export default {\n    data () {\n      return {\n        price: 123.45,\n        money: {\n          decimal: ',',\n          thousands: '.',\n          prefix: 'R$ ',\n          suffix: ' #',\n          precision: 2,\n          masked: false /* doesn't work with directive */\n        }\n      }\n    },\n\n    directives: {money: VMoney}\n  }\n</script>\n```\n\n## Properties\n\n| property  | Required | Type    | Default | Description                                             |\n|-----------|----------|---------|---------|---------------------------------------------------------|\n| precision | **true** | Number  | 2       | How many decimal places                                 |\n| decimal   | false    | String  | \".\"     | Decimal separator                                       |\n| thousands | false    | String  | \",\"     | Thousands separator                                     |\n| prefix    | false    | String  | \"\"      | Currency symbol followed by a Space, like \"R$ \"         |\n| suffix    | false    | String  | \"\"      | Percentage for example: \" %\"                            |\n| masked    | false    | Boolean | false   | If the component output should include the mask or not  |\n\n### References\n\n- https://en.wikipedia.org/wiki/Decimal_mark\n- https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html\n- http://www.xe.com/symbols.php\n- https://github.com/kevinongko/vue-numeric\n- https://github.com/plentz/jquery-maskmoney\n- https://github.com/vuejs-tips/v-money"},"npm":{"downloads":[{"from":"2022-07-11T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2022-07-05T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":1},{"from":"2022-06-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":15},{"from":"2022-04-13T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":94},{"from":"2022-01-13T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":288},{"from":"2021-07-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":513}],"starsCount":0},"github":{"homepage":"https://vuejs-tips.github.io/v-money/","forkOf":"vuejs-tips/v-money","starsCount":0,"forksCount":0,"subscribersCount":1,"issues":{"count":0,"openCount":0,"distribution":{"3600":0,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":true},"contributors":[{"username":"dflourusso","commitsCount":2},{"username":"kleinernik","commitsCount":1},{"username":"DannyFeliz","commitsCount":1},{"username":"neves","commitsCount":31},{"username":"jonathanczx","commitsCount":12}],"commits":[{"from":"2022-07-05T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2022-06-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2022-04-13T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2022-01-13T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0},{"from":"2021-07-12T00:00:00.000Z","to":"2022-07-12T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":2820,"testsSize":1039},"outdatedDependencies":{"webpack":{"required":"^4.29.5","stable":"5.73.0","latest":"5.73.0"}}}},"evaluation":{"quality":{"carefulness":0.39499999999999996,"tests":0.6,"health":0.75,"branding":0},"popularity":{"communityInterest":6,"downloadsCount":31.333333333333332,"downloadsAcceleration":-0.1777397260273973,"dependentsCount":0},"maintenance":{"releasesFrequency":0.28664383561643836,"commitsFrequency":0,"openIssues":0.7,"issuesDistribution":0.7}},"score":{"final":0.550085799081268,"detail":{"quality":0.8173065324001857,"popularity":0.041031550429534186,"maintenance":0.8300937048882155}}}