{"_id":"@1naturalway/vue-the-mask","_rev":"3-05cc75cec8e579ede93ac7d34dba22ef","name":"@1naturalway/vue-the-mask","dist-tags":{"latest":"0.12.0"},"versions":{"0.12.0":{"name":"@1naturalway/vue-the-mask","version":"0.12.0","description":"Tiny (2KB) and dependency free mask input for Vue.js","main":"dist/vue-the-mask.js","scripts":{"size":"size-limit","upgrade:check":"ncu","upgrade:apply":"ncu -a","build":"vue build -t lib -n VueTheMask src && cp dist/VueTheMask.umd.min.js dist/vue-the-mask.js","docs:build":"cd src/docs && vue build -d ../../docs/","docs:serve":"serve ./","start":"yarn dev","test":"cypress run --dev --record false","ci":"start-server-and-test e2e:start-fixture http://localhost:8080 cypress:open","cypress:open":"cypress open","e2e:install-global-dependencies":"yarn global add selenium-standalone@latest && selenium-standalone install","e2e:start-fixture":"vue serve ./test/fixture.vue","e2e:start-selenium":"selenium-standalone start","e2e:run":"nightwatch ./test/nightwatch.js","dev":"cd src/docs && vue serve"},"keywords":["vue","mask"],"jest":{"moduleFileExtensions":["js","json","vue"],"transform":{"^.+\\.js$":"<rootDir>/node_modules/babel-jest",".*\\.(vue)$":"<rootDir>/node_modules/vue-jest"}},"size-limit":[{"path":"dist/vue-the-mask.umd.min.js","limit":"1.55 KB"}],"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"license":"MIT","babel":{"env":{"test":{"presets":["env"]},"production":{"presets":["@vue/app"]}}},"eslintConfig":{"root":true,"extends":["plugin:vue/essential","eslint:recommended"]},"postcss":{"plugins":{"autoprefixer":{}}},"browserslist":["last 2 chrome versions"],"devDependencies":{"@vue/cli-plugin-babel":"^3.0.0-beta.10","@vue/cli-plugin-eslint":"^3.0.0-beta.10","@vue/cli-service":"^3.0.0-beta.10","babel-jest":"^22.4.3","babel-preset-vue-app":"^2.0.0","codeceptjs-puppeteer":"^1.2.0","cypress":"^2.1.0","jest":"^22.4.3","jest-serializer-vue":"^1.0.0","nightwatch":"^0.9.21","npm-check-updates":"^2.14.2","npmlog":"4.1.2","puppeteer":"^1.4.0","serve":"^6.5.7","size-limit":"^0.18.0","testcafe":"^0.20.0","vue":"^2.5.16","vue-jest":"^2.5.0","vue-loader":"^14.2.2","vue-template-compiler":"^2.5.16"},"dependencies":{"start-server-and-test":"^1.4.1"},"directories":{"doc":"docs","test":"test"},"repository":{"type":"git","url":"git+https://github.com/1naturalway/vue-the-mask.git"},"bugs":{"url":"https://github.com/1naturalway/vue-the-mask/issues"},"homepage":"https://github.com/1naturalway/vue-the-mask#readme","gitHead":"86bd3d345530909092f417afc4bf3425c26fee83","_id":"@1naturalway/vue-the-mask@0.12.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-kFFzf4fr60ZGC0j1bZg7v79h9p5qdnG3td8FNiAy1LWvewgZ6jmXHjHxbsoXiLYI472ydEOmXg/gsVnjwZ8tYw==","shasum":"06e8350a491b6df5d0a012fd49c6cdf9e98aee78","tarball":"https://registry.npmjs.org/@1naturalway/vue-the-mask/-/vue-the-mask-0.12.0.tgz","fileCount":16,"unpackedSize":100056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFw/RCRA9TVsSAnZWagAAroEP/RIQPJ5AWM1Im6fwqz6n\ngv89iJjrpyz1L6rC803j9lI+CL3AkAQmlBWbx+qY+2FtiJWOIqonaXkDQ1hH\n5MnXeqmRgRUu98UT059/DkFkqYT7GxyqbD0hEeHqfhr6pbykkYha+1is/WeF\nOEKV8r8p5yB6d+B3ILoDSPop6nXd4Bug0E0bvO4TlHuxEYA35QJuSyG1971i\noX/KXVi6+4If63QEcVQHFvw7T7dE3aIfHm74GnFRMrCQnGHb8X56Av0SX4Wj\nPC77+bKsfbwDRg29/vETTwrrOwebHjksW2EA/c8hVMDx4nu7NyHYWNnvM04A\nS+98FSQuoTLKwI0l4FYKWnCd6FDauyyJG/yol/1hNrbzAGpbPIeqKgRtb4l+\nWLYFTHzc7gXPos8LT6Cz9QAEzRJmlUhM9S9LKk4CX6wXgslTCmOTHdC9f+6o\npcChQQs5wlhSOX/4+PgMYzrjs+warb4Sk3y4RJs+ph9YY4rEMSdVbVUpQm3v\ney+udJ6JRPzlMcUcIw3g+Ps6DU9gDJZka2kSw0CuoE87AdGZBoR1drW3nUIv\nPz1sgykeRx6BaFkFludcQkAjRYpyQUK6sxHdTw+danXCvEfE5tJyZKLjFzAu\ncJyq9m9kgMQaj0coc2EhzyyJPh+vVzqc7LgVGscF0FxEqcZk3Kvjn50pKxlw\nBKOB\r\n=7Qns\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9egEBIOyk9OZ8MFjXOuZ2IvzowS8qkD8piXXKg+3LDAiAC1xEYkH75b5hfVW82Bu7D8jh+lOymoCW60BygF5n4Nw=="}]},"_npmUser":{"name":"ajohnson6494","email":"ajohnson6494@gmail.com"},"maintainers":[{"name":"ajohnson6494","email":"ajohnson6494@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-the-mask_0.12.0_1612124112588_0.8374592119493589"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-31T20:15:12.342Z","0.12.0":"2021-01-31T20:15:12.731Z","modified":"2022-04-04T10:33:49.252Z"},"maintainers":[{"email":"ajohnson6494@gmail.com","name":"ajohnson6494"}],"description":"Tiny (2KB) and dependency free mask input for Vue.js","homepage":"https://github.com/1naturalway/vue-the-mask#readme","keywords":["vue","mask"],"repository":{"type":"git","url":"git+https://github.com/1naturalway/vue-the-mask.git"},"author":{"name":"Marcos Neves","email":"marcos.neves@gmail.com","url":"https://vuejs-tips.github.io/"},"bugs":{"url":"https://github.com/1naturalway/vue-the-mask/issues"},"license":"MIT","readme":"# The Mask\n\nA lightweight (2KB gzipped) and dependency free mask input created specific for Vue.js\n\n## [Docs and Demo](https://vuejs-tips.github.io/vue-the-mask)\n\n### [JsFiddle](https://jsfiddle.net/neves/r8cL3msn/1/)\n\n![The Mask Heart](https://raw.githubusercontent.com/vuejs-tips/vue-the-mask/master/img/the-mask-heart.gif)\n\n## Install\n\n```\nyarn add vue-the-mask\nor\nnpm i -S vue-the-mask\n```\n\n## Usage (two flavors)\n\n### Global\n\n```javascript\nimport VueTheMask from 'vue-the-mask'\nVue.use(VueTheMask)\n```\n\n### Local (inside the component)\n\n```javascript\nimport {TheMask} from 'vue-the-mask'\nexport default {\n  components: {TheMask}\n}\n```\n\n### Local (as directive)\n\n```javascript\nimport {mask} from 'vue-the-mask'\nexport default {\n  directives: {mask}\n}\n```\n\n## Tokens\n\n```javascript\n'#': {pattern: /\\d/},\n'X': {pattern: /[0-9a-zA-Z]/},\n'S': {pattern: /[a-zA-Z]/},\n'A': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleUpperCase()},\n'a': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleLowerCase()},\n'!': {escape: true}\n```\n\n![The Mask Money](https://raw.githubusercontent.com/vuejs-tips/vue-the-mask/master/img/the-mask-hammer.gif)\n\n## Properties\n\n| Property    | Required | Type                    | Default | Description                                |\n|-------------|----------|-------------------------|---------|--------------------------------------------|\n| value       | false    | String                  |         | Input value or v-model                     |\n| mask        | **true** | String, Array           |         | Mask pattern                               |\n| masked      | false    | Boolean                 | false   | emit value with mask chars, default is raw |\n| placeholder | false    | String                  |         | Same as html input                         |\n| type        | false    | String                  | 'text'  | Input type (email, tel, number, ...)       |\n| tokens      | false    | Object                  | [tokens](#tokens) | Custom tokens for mask           |\n\n## What about money?\n\nWe understand that money format is a totally different domain, which needs another specific component. You can use https://github.com/vuejs-tips/v-money\n\n![The Mask Money](https://raw.githubusercontent.com/vuejs-tips/vue-the-mask/master/img/the-mask-money.gif)\n\n## Other Solutions\n\n1. ![https://github.com/nosir/cleave.js](https://img.shields.io/github/stars/nosir/cleave.js.svg?style=social&label=Star) https://github.com/nosir/cleave.js\n1. ![https://github.com/text-mask/text-mask](https://img.shields.io/github/stars/text-mask/text-mask.svg?style=social&label=Star) https://github.com/text-mask/text-mask\n1. ![https://github.com/igorescobar/jQuery-Mask-Plugin](https://img.shields.io/github/stars/igorescobar/jQuery-Mask-Plugin.svg?style=social&label=Star) https://github.com/igorescobar/jQuery-Mask-Plugin\n1. ![https://github.com/fernandofleury/vanilla-masker](https://img.shields.io/github/stars/fernandofleury/vanilla-masker.svg?style=social&label=Star) https://github.com/fernandofleury/vanilla-masker\n1. ![https://github.com/angular-ui/ui-mask](https://img.shields.io/github/stars/angular-ui/ui-mask.svg?style=social&label=Star) https://github.com/angular-ui/ui-mask\n1. ![https://github.com/insin/inputmask-core](https://img.shields.io/github/stars/insin/inputmask-core.svg?style=social&label=Star) https://github.com/insin/inputmask-core\n1. ![https://github.com/niksmr/vue-masked-input](https://img.shields.io/github/stars/niksmr/vue-masked-input.svg?style=social&label=Star) https://github.com/niksmr/vue-masked-input\n1. ![https://github.com/probil/v-mask](https://img.shields.io/github/stars/probil/v-mask.svg?style=social&label=Star) https://github.com/probil/v-mask\n1. ![https://github.com/moip/awesome-mask](https://img.shields.io/github/stars/moip/awesome-mask.svg?style=social&label=Star) https://github.com/moip/awesome-mask\n1. ![https://github.com/the-darc/string-mask](https://img.shields.io/github/stars/the-darc/string-mask.svg?style=social&label=Star) https://github.com/the-darc/string-mask\n1. ![https://github.com/romulobrasil/PureMask.js](https://img.shields.io/github/stars/romulobrasil/PureMask.js.svg?style=social&label=Star) https://github.com/romulobrasil/PureMask.js\n1. ![https://github.com/devindex/vue-mask](https://img.shields.io/github/stars/devindex/vue-mask.svg?style=social&label=Star) https://github.com/devindex/vue-mask\n\n## Currency\n\n1. ![https://github.com/vuejs-tips/v-money](https://img.shields.io/github/stars/vuejs-tips/v-money.svg?style=social&label=Star) https://github.com/vuejs-tips/v-money\n1. ![https://github.com/plentz/jquery-maskmoney](https://img.shields.io/github/stars/plentz/jquery-maskmoney.svg?style=social&label=Star) https://github.com/plentz/jquery-maskmoney\n1. ![https://github.com/flaviosilveira/Jquery-Price-Format](https://img.shields.io/github/stars/flaviosilveira/Jquery-Price-Format.svg?style=social&label=Star) https://github.com/flaviosilveira/Jquery-Price-Format\n1. ![https://github.com/kevinongko/vue-numeric](https://img.shields.io/github/stars/kevinongko/vue-numeric.svg?style=social&label=Star) https://github.com/kevinongko/vue-numeric\n\n### [Suggest another one here](https://github.com/vuejs-tips/vue-the-mask/issues/new?title=Library+Suggestion)\n\n## Contribution\n\nYou're free to contribute to this project by submitting [issues](https://github.com/vuejs-tips/v-tag-input.svg/issues) and/or [pull requests](https://github.com/vuejs-tips/v-tag-input.svg/pulls). This project is test-driven, so keep in mind that every change and new feature should be covered by tests. Your name will be added to the hall of fame ;)\n\n![The Mask Wolf](https://raw.githubusercontent.com/vuejs-tips/vue-the-mask/master/img/the-mask-wolf.gif)\n\n## License\n\nThis project is licensed under [MIT License](http://en.wikipedia.org/wiki/MIT_License)\n","readmeFilename":"README.md"}