{"_id":"@artemv/vue-masked-input","_rev":"1-74a14c44fb4b554115aed4c771f6d3e9","name":"@artemv/vue-masked-input","dist-tags":{"artembeta":"0.5.3-pre.1","latest":"0.5.3-pre.1"},"versions":{"0.5.3-pre.1":{"name":"@artemv/vue-masked-input","description":"Masked input component for Vue.js 2.X","version":"0.5.3-pre.1","author":{"name":"niksmr"},"license":"MIT","homepage":"https://github.com/niksmr/vue-masked-input","main":"dist/maskedInput.js","scripts":{"dev":"cross-env NODE_ENV=development webpack-dev-server --open --inline --hot","lint":"eslint src/MaskedInput.js","babel":"npm run babel-component & npm run babel-poly","babel-component":"babel src/ff-polyfill.js --out-file dist/ff-polyfill.js","babel-poly":"babel src/MaskedInput.js --out-file dist/maskedInput.js","build":"cross-env NODE_ENV=production webpack --progress --hide-modules & npm run babel"},"repository":{"type":"git","url":"git+https://github.com/niksmr/vue-masked-input.git"},"keywords":["vue","mask","masked","input"],"dependencies":{"inputmask-core":"^2.2.0","vue":"^2.2.6"},"devDependencies":{"babel-cli":"^6.24.1","babel-core":"^6.0.0","babel-loader":"^7.0.0","babel-polyfill":"^6.22.0","babel-preset-env":"^1.7.0","cross-env":"^4.0.0","css-loader":"^0.28.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","file-loader":"^0.11.1","vue-loader":"^12.0.0","vue-template-compiler":"^2.1.0","webpack":"^2.2.0","webpack-dev-server":"^2.2.0"},"gitHead":"e163017f62a9b3cdd23054f88b042e3cbe00eae2","bugs":{"url":"https://github.com/niksmr/vue-masked-input/issues"},"_id":"@artemv/vue-masked-input@0.5.3-pre.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"artemv","email":"artem.job@gmail.com"},"dist":{"integrity":"sha512-CzkgsCFwUfz3sKBM/KrvSbWeDYDfQ052AbJK+9DK0SqPHGd0BGBE6kiueW9A1Tzqpw1G5usw0KKuLpWLCDRjCQ==","shasum":"7de021a2aab7b78fece50cf35ef5f390bedef226","tarball":"https://registry.npmjs.org/@artemv/vue-masked-input/-/vue-masked-input-0.5.3-pre.1.tgz","fileCount":23,"unpackedSize":2078366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPSifCRA9TVsSAnZWagAA/tMP/jJ87Uf3cFVwkMIiYYua\nUH6ZzObawjb8xL9OuESA/G7kSVDALbp2S1mFbJp1DBE60gWwsVaFZZD0IISN\naDK5k5uRVS9hw6GszwIpjo03aI5pIbOemYeCmseLgCVoHazC6BbPfC1Jyy8O\n+Zf5EJzJF6MgAGRvT3dfoFdeyXNgVbnZqDrBg7+NTm5hysYugW1alR48Gr/K\nYdj1nmmtR003dGt2Scfy5VepN2Z1Pl5uQBFzfYY5AC2tLIFjSJZlL5CJswn8\nOotUUCF1Y4ziQgYD8/v0kxofuEdD+oSACXEPHzdbY2TYbTjBafPtlllYTrvY\ntTSFq0OOeIJoZS6jpv7nsE79BLDJcGRzP3UkGMrrCD3xkBofo/vy4kBCqu/P\nJixsR5mAzUTG/KCqMRz98C2ork4ZDZZ0m2waU9L2ew3UT0citrQVb4jtG99M\nuIj3vYPyZWw6BPDZdeKjNn3cJt2wcumqzezKnUxl9ys+hje5LTmAWqWv5Xmv\npXq4K2rD2Yt8miGE6Q7qHg9W0dZbS+Hesi/PeBOhJzqurLPep00T84D3t8H1\nKD9ydMHcXrHsIHLr0A1yDR6MB20VSzu+xQla/mJAV3Y3feBAH/u8U7nrEUla\n3CM93FDDh0rCvMgFtznrzmv1S+ERzdLjzFMmujN4ZuON2gNDkrOs1cAP2Et/\nBMP9\r\n=MgRT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3FdC3JZhAqJf5iYWPl0Ikj1QOhGANkmSrQls7NqS5IQIgY/f1dloJum0jK/1J7TS/EajGO4ZcbV7m4JgK56sLADI="}]},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-masked-input_0.5.3-pre.1_1530734751610_0.1933194623653396"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-04T20:05:51.315Z","0.5.3-pre.1":"2018-07-04T20:05:51.735Z","modified":"2022-04-04T15:36:49.278Z"},"maintainers":[{"name":"artemv","email":"artem.job@gmail.com"}],"description":"Masked input component for Vue.js 2.X","homepage":"https://github.com/niksmr/vue-masked-input","keywords":["vue","mask","masked","input"],"repository":{"type":"git","url":"git+https://github.com/niksmr/vue-masked-input.git"},"author":{"name":"niksmr"},"bugs":{"url":"https://github.com/niksmr/vue-masked-input/issues"},"license":"MIT","readme":"# Vue Masked Input\nDead simple masked input component for Vue.js 2.X. Based on [inputmask-core](https://github.com/insin/inputmask-core).\n\n### [Live Demo](https://niksmr.github.io/vue-masked-input/)\n\n## Install\n### npm\n```\nnpm install vue-masked-input --save\n```\n\n## Usage\nUse it with `v-model` just like a native html input with the `mask` attribute:\n```vue\n<masked-input v-model=\"date\" mask=\"11/11/1111\" placeholder=\"dd/mm/yyyy\" />\n```\n\nThe following format characters define editable parts of the mask (see [inputmask-core](https://github.com/insin/inputmask-core)):\n* `1` - number\n* `a` - letter\n* `A` - letter, forced to upper case when entered\n* `*` - alphanumeric\n* `#` - alphanumeric, forced to upper case when entered\n* `+` - any character\n\n### Static characters\nIf you need to include one of these characters as a static part of the mask, you can escape them with a preceding backslash:\n```vue\n<masked-input v-model=\"phone\" mask=\"\\+\\1 (111) 111-1111\" placeholder=\"Phone number\" type=\"tel\" />\n```\n\n### Raw input\nYou can also get a raw user input text if you want. Instead of using v-model you might need second argument of the input event:\n```vue\n<masked-input mask=\"\\+\\1 (111) 1111-11\" placeholder=\"Phone\" @input=\"rawVal = arguments[1]\" />\n```\n\n### Placeholder character\nPlaceholder character is customizable by `placeholder-char` attribute:\n```vue\n<masked-input v-model=\"phone\" mask=\"\\+\\1 (111) 111-1111\" placeholder-char=\"-\" placeholder=\"Phone number\" type=\"tel\" />\n```\n\n### Custom mask object\nYou can use your own mask options object, it will be passed to the [inputmask-core](https://github.com/insin/inputmask-core#inputmask-options) constructor:\n```vue\n<masked-input\n  v-model=\"custom\"\n  placeholder=\"Custom\"\n  :mask=\"{\n    pattern: 'VVVV',\n    formatCharacters: {\n      'V': {\n        validate: char => /[a-jA-J]/.test(char),\n        transform: char => char.toUpperCase(),\n      },\n    },\n  }\"\n/>\n```\n\n## Known issues/TODO\n* Cut in mobile Chrome\n* Cyrillic chars are not supported in mobile Chrome\n* Backspace problems in mobile Chrome\n\nFound more? It's open for feedback and pull requests\n","readmeFilename":"README.md"}