{"_id":"@alekseyburn/vue-credit-card-validation","_rev":"1-f97bb60389e2126dfbc9ece381ab142a","name":"@alekseyburn/vue-credit-card-validation","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.5":{"name":"@alekseyburn/vue-credit-card-validation","description":"A Vue plugin for formatting and validating credit card forms to offer the same functionality as Stripe's jquery.payment library (and more!).","version":"1.0.5","author":{"name":"Michael Wuori","email":"michael.wuori@gmail.com"},"bugs":{"url":"https://github.com/wuori/vue-credit-card-validation/issues"},"devDependencies":{"@vue/cli-plugin-babel":"^4.5.0","@vue/cli-plugin-eslint":"^4.5.0","@vue/cli-service":"^4.5.0","@vue/compat":"^3.1.0","@vue/compiler-sfc":"^3.1.0","babel-core":"^6.26.3","babel-eslint":"^10.1.0","babel-loader":"^6.2.10","babel-plugin-istanbul":"^5.2.0","babel-polyfill":"6.22.0","babel-preset-es2015":"^6.22.0","babel-preset-power-assert":"^1.0.0","buble":"^0.14.0","cross-env":"^5.2.1","eslint":"^4.19.1","eslint-loader":"^1.6.1","eslint-plugin-vue-libs":"^1.2.0","html-webpack-plugin":"^2.19.0","is-my-json-valid":"^2.20.0","rollup":"^0.36.4","rollup-plugin-buble":"^0.14.0","rollup-plugin-commonjs":"^8.4.1","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-replace":"^1.1.1","set-value":">=4.0.1","uglify-js":"^2.7.5","vue":"^3.2.11","vue-loader":"^15.9.8","vue-template-compiler":"^2.6.14","webpack":"^5.52.1","yargs-parser":">=5.0.1"},"homepage":"https://github.com/wuori/vue-credit-card-validation#readme","main":"dist/vue-credit-card-validation.js","module":"dist/vue-credit-card-validation.esm.js","unpkg":"dist/vue-credit-card-validation.js","keywords":["plugin","vue","vuejs","stripe","credit","validation"],"license":"MIT","engines":{"node":">= 6.0"},"repository":{"type":"git","url":"git+https://github.com/alekseyburn/vue-credit-card-validation.git"},"scripts":{"serve":"vue-cli-service serve","build":"node config/build.js","clean":"rm -rf coverage && rm -rf dist/*.js* && rm ./*.log","lint":"eslint src test config"},"gitHead":"02b31a5c9f1174c8ec1041ea07170f09f280b4cf","_id":"@alekseyburn/vue-credit-card-validation@1.0.5","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-3HJsZpsB6HE0FiUrldwvFqlM5A5+0AXngb+P3H5lBmZH6FV0kJap1Ja4rjHSBTHYPEoKLPbMh9WG5RQllDAdZA==","shasum":"bb3d1c58562e2e7bfd1650ac4a782f9e84c989b5","tarball":"https://registry.npmjs.org/@alekseyburn/vue-credit-card-validation/-/vue-credit-card-validation-1.0.5.tgz","fileCount":13,"unpackedSize":123749,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEsg/OKWV5ubodw+4Kcuh2y99mXolJ9q5IvrPIXlYtZMAiA4DVk8OmbfiiLmnacGMhMVE8jsGvuUn1tMJOUuHgv9rA=="}]},"_npmUser":{"name":"alekseyburn1","email":"alekseyburn@gmail.com"},"directories":{},"maintainers":[{"name":"alekseyburn1","email":"alekseyburn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-credit-card-validation_1.0.5_1700230268921_0.2488361541025772"},"_hasShrinkwrap":false},"1.0.6":{"name":"@alekseyburn/vue-credit-card-validation","description":"A Vue plugin for formatting and validating credit card forms to offer the same functionality as Stripe's jquery.payment library (and more!).","version":"1.0.6","author":{"name":"Michael Wuori","email":"michael.wuori@gmail.com"},"bugs":{"url":"https://github.com/wuori/vue-credit-card-validation/issues"},"devDependencies":{"@vue/cli-plugin-babel":"^4.5.0","@vue/cli-plugin-eslint":"^4.5.0","@vue/cli-service":"^4.5.0","@vue/compat":"^3.1.0","@vue/compiler-sfc":"^3.1.0","babel-core":"^6.26.3","babel-eslint":"^10.1.0","babel-loader":"^6.2.10","babel-plugin-istanbul":"^5.2.0","babel-polyfill":"6.22.0","babel-preset-es2015":"^6.22.0","babel-preset-power-assert":"^1.0.0","buble":"^0.14.0","cross-env":"^5.2.1","eslint":"^4.19.1","eslint-loader":"^1.6.1","eslint-plugin-vue-libs":"^1.2.0","html-webpack-plugin":"^2.19.0","is-my-json-valid":"^2.20.0","rollup":"^0.36.4","rollup-plugin-buble":"^0.14.0","rollup-plugin-commonjs":"^8.4.1","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-replace":"^1.1.1","set-value":">=4.0.1","uglify-js":"^2.7.5","vue":"^3.2.11","vue-loader":"^15.9.8","vue-template-compiler":"^2.6.14","webpack":"^5.52.1","yargs-parser":">=5.0.1"},"homepage":"https://github.com/wuori/vue-credit-card-validation#readme","main":"dist/vue-credit-card-validation.js","module":"dist/vue-credit-card-validation.esm.js","unpkg":"dist/vue-credit-card-validation.js","keywords":["plugin","vue","vuejs","stripe","credit","validation"],"license":"MIT","engines":{"node":">= 6.0"},"repository":{"type":"git","url":"git+https://github.com/alekseyburn/vue-credit-card-validation.git"},"scripts":{"serve":"vue-cli-service serve","build":"node config/build.js","clean":"rm -rf coverage && rm -rf dist/*.js* && rm ./*.log","lint":"eslint src test config"},"gitHead":"16b23e557d4b6c263ec8912686c9dade5d3a18d3","_id":"@alekseyburn/vue-credit-card-validation@1.0.6","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-YcwiS7o1jjdawAjB/AxtzqD6zzXf7eykjX5v8BWi/u5BJ8WsT5UzX8YsqBKoxjrxEbtCaP4eva095CToAoRU2g==","shasum":"a843bee8f85b0ae3dbf4b18545824e692aa3b95a","tarball":"https://registry.npmjs.org/@alekseyburn/vue-credit-card-validation/-/vue-credit-card-validation-1.0.6.tgz","fileCount":13,"unpackedSize":125183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCr1o+cVkbok3p0EjmDXDVeF2AQ5Xp9XmVkkLyd6Ytn2gIhAPqQwRFVCAsITqeSvsh2Q+LTsxVyBeckcMAv3+iTVuMN"}]},"_npmUser":{"name":"alekseyburn1","email":"alekseyburn@gmail.com"},"directories":{},"maintainers":[{"name":"alekseyburn1","email":"alekseyburn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-credit-card-validation_1.0.6_1701073170938_0.5547513803471975"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-17T14:11:08.791Z","1.0.5":"2023-11-17T14:11:09.111Z","modified":"2023-11-27T08:19:31.367Z","1.0.6":"2023-11-27T08:19:31.185Z"},"maintainers":[{"name":"alekseyburn1","email":"alekseyburn@gmail.com"}],"description":"A Vue plugin for formatting and validating credit card forms to offer the same functionality as Stripe's jquery.payment library (and more!).","homepage":"https://github.com/wuori/vue-credit-card-validation#readme","keywords":["plugin","vue","vuejs","stripe","credit","validation"],"repository":{"type":"git","url":"git+https://github.com/alekseyburn/vue-credit-card-validation.git"},"author":{"name":"Michael Wuori","email":"michael.wuori@gmail.com"},"bugs":{"url":"https://github.com/wuori/vue-credit-card-validation/issues"},"license":"MIT","readme":"# vue-credit-card-validation\n\n[![npm](https://img.shields.io/npm/v/vue-credit-card-validation.svg)](https://www.npmjs.com/package/vue-credit-card-validation)\n[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n[![vue3](https://img.shields.io/badge/vue-3.x-brightgreen.svg)](https://vuejs.org/)\n\nA dependency-free Vue plugin for formatting and validating credit card form fields.\n\nA directive is provides input masking, card brand awareness, card number and expiration validation and other features to make creating payment forms a little easier for both you and your users.\n\n[View Demo](https://wuori.github.io/vue-credit-card-validation/example/)\n\n## Installation\n\n*For Vue 3:* \n\nVia npm:\n```sh\nnpm i vue-credit-card-validation\n```\n\n*For Vue 2:*\n\nVia npm:\n```sh\nnpm i vue-credit-card-validation@0.1.x\n```\n\n## Using this plugin\n\nAdding vue-credit-card-validation to your application is as simple as any other plugin:\n\n```js\n// Vue 3 - Implementation Example\nimport VueCreditCardValidation from 'vue-credit-card-validation';\nconst Example = { \n  // your app code\n};\nconst app = createApp(Example);\napp.use(VueCreditCardValidation);\napp.mount('#app');\n```\n\n```js\n// Vue 2 - Implementation Example\nimport Vue from 'vue';\nimport VueCardFormat from 'vue-credit-card-validation';\nVue.use(VueCardFormat);\nnew Vue({\n  el: '#app',\n});\n```\n\nThe `v-cardformat` directive is now available to your app. Masks can be accessed as the arg of this directive, for example:\n\n```html\n<form>\n  <div class=\"form-group\">\n    <label>Card number</label>\n    <input class=\"form-control\" v-cardformat:formatCardNumber>\n  </div>\n  <div class=\"form-group\">\n    <label>Card Expiry</label>\n    <input class=\"form-control\" v-cardformat:formatCardExpiry>\n  </div>\n  <div class=\"form-group\">\n    <label>Card CVC</label>\n    <input class=\"form-control\" v-cardformat:formatCardCVC>\n  </div>\n  <div class=\"form-group\">\n    <label>Numeric input</label>\n    <input class=\"form-control\" v-cardformat:restrictNumeric>\n  </div>\n  <button class=\"btn btn-primary\">Submit</button>\n</form>\n```\n\nView the [advanced example](https://wuori.github.io/vue-credit-card-validation/example/) to see other functionalities that can be used with this plugin.\n \nFor further details, see the [stripe/jquery.payment](https://github.com/stripe/jquery.payment) readme.\n\n## Warning!\n\nThis plugin is not intended for collection credit card data directly. Instead, it is used to format and validate the supplied card information before tokenizing it (for Stripe, etc.) or otherwise storing it securely.\n\nUsing [Stripe Elements](https://stripe.com/docs/stripe-js/elements/quickstart) will offer much of the same functionality with much easier implementation and PCI compliance.\n\n## Credits\n\nThis plugin was originally a clone of [samturrell/vue-stripe-payment](https://github.com/samturrell/vue-stripe-payment) but was rewritten to include the methods provided by [stripe/jquery-payment](https://github.com/stripe/jquery.payment).\n\n## :copyright: License\n\n[MIT](http://opensource.org/licenses/MIT)\n","readmeFilename":"README.md"}