{"_id":"@42sol/v-format","_rev":"10-c3a78cea69c3e3bdb11a32ea78d864fd","name":"@42sol/v-format","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.1":{"name":"@42sol/v-format","version":"1.0.1","keywords":["vue-format","vue format"],"license":"MIT","_id":"@42sol/v-format@1.0.1","maintainers":[{"name":"disaipe","email":"disaipe@gmail.com"}],"bugs":{"url":"https://github.com/42-sol/v-format/issues"},"dist":{"shasum":"e28a58fb365db29605f3c71b54db9f73ee6d8c1a","tarball":"https://registry.npmjs.org/@42sol/v-format/-/v-format-1.0.1.tgz","fileCount":8,"integrity":"sha512-hLwC8muCSvuogcJfWvOzqwuZiMHYlXw6fAd0ccGPuAB0rkXykBqSUxU8hfAZco5fHA/EEkSQrafLXSyJ8PbK0w==","signatures":[{"sig":"MEYCIQDwT0U5daxrdU4pFSflx+ztqWVJ9BPK2V6BH2BqELKENQIhALdZLAWelsH7X0GtasUcC5EgvDQGyHEnkbBtNGghdiCF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":113360,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1um/CRA9TVsSAnZWagAAH60P/3gxfGQwN/9GSgpbOdQ7\n6P3bNUQjTSMriZyI9SqsWNnvv4TcI2+dkrfJ+AwhLY4gy2eXjuzJ6W6cgTmh\ny8C170WExzm2gMxs237k00QD9INvu5ukCVEf8KDnNuZRdthHfYLcVCrinQsK\n39wua9F9pbOhrWF9y9SBqpo7IgIJEfEfBDyeV4waNjCj8+za/dbJXBS46RXo\n3ZJl3fjwrpK6JdLDz4dWzXAEQGozYAMCOBCWdF3fXEEcTGNklM8DJGe4eb3t\nNmeKKuvGOPTAlXyw4biNRsCDW4ZYQ1q6MK2nQuH3vbVU2rQaeiLICZozs7Mw\nGoaj5Twaz9yN8x6Wd3hIb1zK5foL2oMf/yjVKfl63/M3iYhhYX/XYUmRqp5Y\nmuUmYgZiGVZwtVnOhN0wbIwkqmueFZlWgfTP9IRXIHbc5Iv02GRZd1SE7k4K\nfIL13Ga9/ho9/8HWVc2Hio1ptDGk4OyzfcsmoNjweXVxQmNDGWyZnfOcIRXr\nyhf10OXRtPf5d9700NzAsE8AmDacyVsy9YfkipacDn06wQmYrjqQFh7J3Wd1\ntyEQKXJD4dO9vxSRYT32ip6FgfNOG5jzlNt+UPV4gwoEuJRf10aKW0DcV+5K\nGSDppbx/kFEeZWE3MnFBtywbNtdhEfz6Y7sokasW33sMJoCggU4ZHwwuMYor\nsxBC\r\n=mJe+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/v-format.js","module":"dist/v-format.esm.js","gitHead":"43ca83d2fd898c2d5a44ecb5b2fbe80733af0629","scripts":{"lint":"eslint src","build":"npm run bundle && npm run bundle:min","bundle":"rollup -c build/rollup.conf.js","bundle:min":"rollup -c build/rollup.min.conf.js"},"_npmUser":{"name":"disaipe","email":"disaipe@gmail.com"},"_npmVersion":"7.24.2","description":"Vue directive to help you format input text content automatically","directories":{},"_nodeVersion":"16.13.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.6.0","rollup":"^2.63.0","cleave.js":"^1.6.0","@babel/core":"^7.16.7","semantic-release":"^18.0.1","@babel/preset-env":"^7.16.7","rollup-plugin-babel":"^4.4.0","eslint-plugin-import":"^2.25.4","rollup-plugin-terser":"^7.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.2","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/v-format_1.0.1_1641474495435_0.8656178710575326","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@42sol/v-format","version":"1.1.1","keywords":["vue-format","vue format"],"license":"MIT","_id":"@42sol/v-format@1.1.1","maintainers":[{"name":"disaipe","email":"disaipe@gmail.com"}],"bugs":{"url":"https://github.com/42-sol/v-format/issues"},"dist":{"shasum":"1fa635f6a907d8072c8a0d0bd433efdfe404d3bd","tarball":"https://registry.npmjs.org/@42sol/v-format/-/v-format-1.1.1.tgz","fileCount":8,"integrity":"sha512-do/AMwIboF35LqD0UdCZ0TR9bUmqlYeXTEzVrx75mWa/UXrXapNmT4h5ueH/9Q2t+WPgarE5yqOYU1BixBgefA==","signatures":[{"sig":"MEQCIF3W85odoeHu1O6oeU6Rq7xwgx1Ohs65ouZZAQC4e/foAiB+ZVTyHSOfFlqfDpsZCIB0bTfdhkSe6yF7iJMff41Xsg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":113988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYSIKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpY3g//TEnl6rh8S7nKfiGOOzh/YV1QDYfH7SRuaB6KXLFOBR2WE9Fl\r\nLJTCzcrVHJvJxkmg1W9FTjBbGqHzg2sOqpVvYwnt/gBFeRt4EjT/zR5JXG0y\r\ngauXVYmoahRoWMLqG8C2ihYtssuHMDdiN7F/UpL9oZUWjdP+vZYDclx+zoMX\r\nOuZTql4rBYLHnudzaj7GHFmibsGmDzuO+Uu1t1aj1EXXlOrxZ92HOpi+AUgn\r\nTzUIMl9two9EAVau8j4AU6qFlzkQdOv57p2Ae+yebN3dVDSoZOqSX0zvVc8n\r\n9AEGGitQRuPTZ+L4ErDyDlNMBBNkXVfId+RntXsx0j75th4hkhycHkoU0Nwq\r\nfQ+TOs2R+hagFl7XrhW2cNIOzqRMRrB+xjPJXsVVO1cpNT+qnF71l8zprFqA\r\nUlAJiGnBU2Q+bY5Yy6AoZuxYKyQ5zh3TzgXAzHq+B1vwqaWj+Lb7I628IoGR\r\n3+Sk7YJ33npUG0LCxF1WtZjvzifdfpvwPJ3vmf5zhOJB1lleUiQ+R6QFnOQ1\r\n/B+2hr6Y1mLs/4fcrDyHr9Yo2hihJ9mGDGPLt/ihLR3c23CdoManrIdm495V\r\niFDRWYVPko64G34yu4/RpjdZ0YTW4LQXmX0UtHX1upOVvdVl+uIdaD7LAY7i\r\noGt3mH3JC+x7isEIyuPkEKD7sRdSeSZkSkU=\r\n=BUe4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/v-format.js","module":"dist/v-format.esm.js","gitHead":"229eba493051bf82b8dfe78f5170f5aba9df8af9","scripts":{"lint":"eslint src","build":"npm run bundle && npm run bundle:min","bundle":"rollup -c build/rollup.conf.js","bundle:min":"rollup -c build/rollup.min.conf.js"},"_npmUser":{"name":"disaipe","email":"disaipe@gmail.com"},"_npmVersion":"7.24.2","description":"Vue directive to help you format input text content automatically","directories":{},"_nodeVersion":"16.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.6.0","rollup":"^2.63.0","cleave.js":"^1.6.0","@babel/core":"^7.16.7","semantic-release":"^18.0.1","@babel/preset-env":"^7.16.7","rollup-plugin-babel":"^4.4.0","eslint-plugin-import":"^2.25.4","rollup-plugin-terser":"^7.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.2","eslint-config-airbnb-base":"^15.0.0","rollup-plugin-node-resolve":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/v-format_1.1.1_1667310090645_0.28158941322823194","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-01-06T13:08:15.388Z","modified":"2025-02-11T14:48:20.920Z","1.1.0":"2022-01-06T12:01:09.777Z","1.0.0":"2022-01-06T12:19:11.634Z","1.0.1":"2022-01-06T13:08:15.627Z","1.1.1":"2022-11-01T13:41:30.774Z"},"bugs":{"url":"https://github.com/42-sol/v-format/issues"},"license":"MIT","keywords":["vue-format","vue format"],"description":"Vue directive to help you format input text content automatically","maintainers":[{"email":"disaipe@gmail.com","name":"disaipe"}],"readme":"![npm](https://img.shields.io/npm/v/@42sol/v-format)\n[![Release](https://github.com/42-sol/v-format/actions/workflows/release.yml/badge.svg)](https://github.com/42-sol/v-format/actions/workflows/release.yml)\n[![Vue2](https://img.shields.io/badge/Vue-2.x-brightgreen.svg)](https://vuejs.org/)\n\n# Vue input format directive\n> Tiny input format library for vue.js based on [cleave.js](https://github.com/nosir/cleave.js)\n\n## Why?\n\nThe idea is to provide an easy way to increase input field readability by formatting your typed data. \nBy using this library, you won't need to write any mind-blowing regular expressions or mask patterns\nto format input text.\n\nHowever, this isn't meant to replace any validation or mask library, you should still sanitize \nand validate your data in backend.\n\n## Installation\n\n```shell\nnpm i @42sol/v-format\n\n# or\n\nyarn add @42sol/v-format\n```\n\n## Initialization\n\n```javascript\nimport Vue from 'vue';\n\n// As plugin (globally)\nimport VueFormat from '@42sol/v-format';\nVue.use(VueFormat);\n\n// Or as a global directive\nimport { VueFormatDirective } from '@42sol/v-format'\nVue.directive('format', VueFormatDirective);\n\n// Or as a component directive\nimport { VueFormatDirective } from '@42sol/v-format'\n\nexport default {\n  directives: {\n    format: VueFormatDirective\n  }\n}\n```\n\n## Usage\n\n```javascript\n<input type=\"text\" v-model=\"value\" v-format=\"{ creditCard: true }\">\n<!-- OR -->\n<input type=\"text\" v-model=\"value\" v-format=\"variableWithOptions\">\n<!-- OR -->\n<input type=\"text\" v-model=\"value\" v-format=\"'numeral'\">\n\n<!-- OR -->\n<InputComponent v-model=\"value\" v-format=\"{ selector: '.innerInput', creditCard: true }\" />\n```\n\n## Configuration\n\nAll directive options must match [cleave.js](https://github.com/nosir/cleave.js) options. \nSee [official documentation](https://github.com/nosir/cleave.js/blob/master/doc/options.md) for details.\n\n### Input selector\n\nYou can pass **selector**  option to query nested `<input>` element. \nThis can be helpful in components with difficult structure.\n\nDefault selector is ```'input'```.\n","readmeFilename":"README.md"}