{"_id":"v-money","_rev":"9-76013bc3644fa3d2fe5588ce42e8e27c","name":"v-money","description":"Vue currency input/directive mask","dist-tags":{"latest":"0.8.1"},"versions":{"0.3.0":{"name":"v-money","version":"0.3.0","description":"Vue currency input/directive mask","main":"dist/v-money.js","scripts":{"dev":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --host 0.0.0.0","build":"vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib","docs:build":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --dist ./docs/ --prod","docs:serve":"open http://localhost:5000/docs/ && serve ./","compile":"npm run build -- --disable-compress","test":"jest"},"keywords":["vue","input","mask","directive","currency","money"],"files":["dist/"],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","devDependencies":{"babel-jest":"^20.0.3","babel-preset-vue-app":"^1.2.0","jest":"^20.0.4"},"gitHead":"a4636f536d80f0b8abf6815612c4d8e2235c7569","_id":"v-money@0.3.0","_shasum":"3cf1a37510c31f2bccf93183928f2016e9b8dfc1","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"neves","email":"marcos.neves@gmail.com"},"dist":{"shasum":"3cf1a37510c31f2bccf93183928f2016e9b8dfc1","tarball":"https://registry.npmjs.org/v-money/-/v-money-0.3.0.tgz","integrity":"sha512-GApP7pxK59oDvfmJldFm0kNAUsQcHge2efsNywPot2x54mntC27tF6gRzHjkV8wvM9lsjICTu3tXE1Rxmb+rHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0t5Ti68kCFKGYqltO3iYtz9JfmxH3+c0tNRP7t2GOdAiEA7amHZ8e2GWmlaQ1U0PA3DVMI74riIkskrTtcC4HneO0="}]},"maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-money-0.3.0.tgz_1497305952715_0.8371028886176646"}},"0.5.0":{"name":"v-money","version":"0.5.0","description":"Vue currency input/directive mask","main":"dist/v-money.js","scripts":{"dev":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --host 0.0.0.0","build":"vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib","docs:build":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --dist ./docs/ --prod","docs:serve":"open http://localhost:5000/docs/ && serve ./","compile":"npm run build -- --disable-compress","test":"jest"},"keywords":["vue","input","mask","directive","currency","money"],"files":["dist/"],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","devDependencies":{"babel-jest":"^20.0.3","babel-preset-vue-app":"^1.2.0","jest":"^20.0.4","vuetify":"^0.12.7"},"gitHead":"fc372b55b85d230ab8117d8feab3f0f4aff003b6","_id":"v-money@0.5.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"neves","email":"marcos.neves@gmail.com"},"dist":{"integrity":"sha512-KfD661lL6oML/sW1KMv2E/2hK95XryltrQIsIURP7HnGQsB6w+a/C6xUdXpXdK3BEIv0wDaI09SziO9tf/0k4Q==","shasum":"35d336ecf06c855dc85ec2a83024ebc187626e04","tarball":"https://registry.npmjs.org/v-money/-/v-money-0.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbWwwvYVGgZsY1H8GZRI4giArbf6OnWCHxOsD8WXObxAiBaPRRoBsU523Fa6VPIhbazH1jJyXAvUdYlAp8VJIl/yA=="}]},"maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-money-0.5.0.tgz_1497987748180_0.6999402760993689"}},"0.6.0":{"name":"v-money","version":"0.6.0","description":"Vue currency input/directive mask","main":"dist/v-money.js","scripts":{"dev":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --host 0.0.0.0","build":"vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib","docs:build":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --dist ./docs/ --prod","docs:serve":"open http://localhost:5000/docs/ && serve ./","compile":"npm run build -- --disable-compress","test":"jest"},"keywords":["vue","input","mask","directive","currency","money"],"files":["dist/"],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","devDependencies":{"babel-jest":"^20.0.3","babel-preset-vue-app":"^1.2.0","jest":"^20.0.4","vuetify":"^0.12.7"},"gitHead":"995479bb48d0316105fb45307244eef4dd117ddb","_id":"v-money@0.6.0","_shasum":"95e5a6e08019ff7552e047eebcbdc77b2b701663","_from":".","_npmVersion":"2.15.12","_nodeVersion":"8.1.3","_npmUser":{"name":"neves","email":"marcos.neves@gmail.com"},"dist":{"shasum":"95e5a6e08019ff7552e047eebcbdc77b2b701663","tarball":"https://registry.npmjs.org/v-money/-/v-money-0.6.0.tgz","integrity":"sha512-5ypMxY/kZrfZhIRxdjvaeNz23mr2Jp/dkTMG7g024xnkyGkbx5KCZWG0Nh9+JDsh3eopepkPTIaCBxkUtq/XSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/ZODDZJdF68xB1ww/NsnO0ALK1hV2Q/ipsnjLLdG6DAiEA5erjXlfVS/mXOhgZ2lcp2nFhOTYd9AUhm8NCwAJ2ZUI="}]},"maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-money-0.6.0.tgz_1500053543194_0.20253469957970083"}},"0.7.0":{"name":"v-money","version":"0.7.0","description":"Vue currency input/directive mask","main":"dist/v-money.js","scripts":{"upgrade:check":"ncu","upgrade:apply":"ncu -a","dev":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --host 0.0.0.0","build":"vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib","docs:build":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --dist ./docs/ --prod","docs:serve":"open http://localhost:5000/docs/ && serve ./","compile":"npm run build -- --disable-compress","test":"jest"},"keywords":["vue","input","mask","directive","currency","money"],"files":["dist/"],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","devDependencies":{"babel-jest":"^20.0.3","babel-preset-vue-app":"^1.2.0","jest":"^20.0.4","npm-check-updates":"^2.12.1","vuetify":"^0.14.5"},"gitHead":"f768db3a54a2fc8bb29c49509313a228d21ede84","_id":"v-money@0.7.0","_shasum":"2b98d5de7edec9e713e0ff993a034ef2de9ad1ab","_from":".","_npmVersion":"2.15.12","_nodeVersion":"8.1.3","_npmUser":{"name":"neves","email":"marcos.neves@gmail.com"},"dist":{"shasum":"2b98d5de7edec9e713e0ff993a034ef2de9ad1ab","tarball":"https://registry.npmjs.org/v-money/-/v-money-0.7.0.tgz","integrity":"sha512-3OINWByWFq4G8leSWIkPHHeDUwwT694ngJX1aLnIfRkZrkff6arIBcVmiSqr/0ILnW6StoZJPk3wCVe95//smg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2bjpZRr9IktK9Ed2seipXqJEezbh3Ftpuz6nwLJw+9AiEAuZzC3QE0aXW9ZhuhMEi6/OGk7Ic5zk71JABQV+vmUIU="}]},"maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-money-0.7.0.tgz_1500557230337_0.342428162926808"}},"0.8.0":{"name":"v-money","version":"0.8.0","description":"Vue currency input/directive mask","main":"dist/v-money.js","scripts":{"upgrade:check":"ncu","upgrade:apply":"ncu -a","dev":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --host 0.0.0.0","build":"vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib","docs:build":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --dist ./docs/ --prod","docs:serve":"open http://localhost:5000/docs/ && serve ./","compile":"npm run build -- --disable-compress","test":"jest"},"keywords":["vue","input","mask","directive","currency","money"],"files":["dist/"],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","devDependencies":{"babel-jest":"^20.0.3","babel-preset-vue-app":"^1.2.0","jest":"^20.0.4","npm-check-updates":"^2.12.1","vuetify":"^0.14.5"},"gitHead":"4d2d6e24ff9102ed05988cdde61981c37336260c","_id":"v-money@0.8.0","_shasum":"8662ceeaab0403b1fd0009d3817bde3628d959b6","_from":".","_npmVersion":"2.15.12","_nodeVersion":"8.1.3","_npmUser":{"name":"neves","email":"marcos.neves@gmail.com"},"dist":{"shasum":"8662ceeaab0403b1fd0009d3817bde3628d959b6","tarball":"https://registry.npmjs.org/v-money/-/v-money-0.8.0.tgz","integrity":"sha512-yk0gc3EiC47cjDNm5BGxzYrBahRR8rktVCCd+jDWPqGFl1cYuEE9Z3C+8WrHn2awRAcPZ9CfzwoFV9KTQJT6kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFldnzFZ5q+jiLvrI9kav+d5QfqwCuDQnaFnrh65HV4qAiEA7ILXoievn1racp3hT9kvKE507xcP/+l/b89H4fGYmvQ="}]},"maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-money-0.8.0.tgz_1500560534691_0.9901318605989218"}},"0.8.1":{"name":"v-money","version":"0.8.1","description":"Vue currency input/directive mask","main":"dist/v-money.js","scripts":{"size":"size-limit","upgrade:check":"ncu","upgrade:apply":"ncu -a","dev":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --host 0.0.0.0","build":"vue build ./src/index.js --config ./build.config.js --dist ./dist/ --prod --lib","docs:build":"vue build ./src/docs/docs.vue --config ./src/docs/build.config.js --dist ./docs/ --prod","docs:serve":"open http://localhost:5000/docs/ && serve ./","compile":"npm run build -- --disable-compress","test":"jest"},"keywords":["vue","input","mask","directive","currency","money"],"files":["dist/"],"size-limit":[{"path":"dist/v-money.js","limit":"1.6 KB"}],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","devDependencies":{"babel-jest":"^21.2.0","babel-preset-vue-app":"^1.3.1","jest":"^21.2.1","npm-check-updates":"^2.13.0","size-limit":"^0.11.6","vuetify":"^0.16.7"},"gitHead":"694fecf8212cde639cd4d4de680c1c20fc04a477","_id":"v-money@0.8.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"neves","email":"marcos.neves@gmail.com"},"dist":{"integrity":"sha512-raz87AP5F2YEpv1GAocI3SC/y9af1+TQeZQIhAK5UNovho6dnh6RQBa5UG8ZNC+BPLpUh5VECi7EWTjr4+4s1g==","shasum":"dc28cf3be915c5a6c52bfe1085075e1fe7ae9db5","tarball":"https://registry.npmjs.org/v-money/-/v-money-0.8.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUkqCGgMXcyy22SenLmrU6VCgncD7OL/+0uM23b9jagAiAbFUXnu/T3tu96YONAyNzcKOgQZZuSA3ny1ZX+TrQENA=="}]},"maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-money-0.8.1.tgz_1508177461882_0.8271083426661789"}}},"readme":"# v-money Mask for Vue.js\n\n![The Mask Money](https://cdn-images-1.medium.com/max/600/1*Rpc289FpghuHrnzyVpOUig.gif)\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","maintainers":[{"name":"neves","email":"marcos.neves@gmail.com"}],"time":{"modified":"2022-06-28T08:01:55.679Z","created":"2017-06-12T22:19:12.857Z","0.3.0":"2017-06-12T22:19:12.857Z","0.5.0":"2017-06-20T19:42:28.303Z","0.6.0":"2017-07-14T17:32:23.322Z","0.7.0":"2017-07-20T13:27:10.452Z","0.8.0":"2017-07-20T14:22:14.786Z","0.8.1":"2017-10-16T18:11:01.948Z"},"keywords":["vue","input","mask","directive","currency","money"],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","readmeFilename":"README.md","users":{"leonardo_ebert":true}}