{"_id":"@awaismirza/angular2-text-mask","_rev":"3-663af184ddf31feefe472ab9abbd4d37","name":"@awaismirza/angular2-text-mask","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@awaismirza/angular2-text-mask","version":"0.0.1","_id":"@awaismirza/angular2-text-mask@0.0.1","maintainers":[{"name":"awaismirza","email":"owaesmirza@gmail.com"}],"dist":{"shasum":"08beae2327c4daf3c6611ffb8cdac4552d4f6acb","tarball":"https://registry.npmjs.org/@awaismirza/angular2-text-mask/-/angular2-text-mask-0.0.1.tgz","fileCount":10,"integrity":"sha512-9jiN9+3AXm9Gk56LAMB6luadDw/PXpmpD7vYxHsGRgm2Rmj2xJ6ETY2AzmynAY9iEYdZypn6q21EKWTmTzMcYg==","signatures":[{"sig":"MEYCIQD8c9XHnBWjGeaxjeGfmIioxXV4axdGz/wucghEe329dQIhANNcbX0AZ1y4v7Zl9NJhReuRgkKGHsvIp27/aSxXzB4l","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39133},"module":"fesm2022/awaismirza-angular2-text-mask.mjs","exports":{".":{"esm":"./esm2022/awaismirza-angular2-text-mask.mjs","types":"./index.d.ts","default":"./fesm2022/awaismirza-angular2-text-mask.mjs","esm2022":"./esm2022/awaismirza-angular2-text-mask.mjs"},"./package.json":{"default":"./package.json"}},"gitHead":"f4f438c2e2a87f880652a8ffe8d307f115bd786f","typings":"index.d.ts","_npmUser":{"name":"awaismirza","email":"owaesmirza@gmail.com"},"_npmVersion":"9.5.1","description":"This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.0.0.","directories":{},"sideEffects":false,"_nodeVersion":"18.16.0","dependencies":{"tslib":"^2.3.0","text-mask-core":"^5.1.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"@angular/core":"^16.0.0","@angular/common":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/angular2-text-mask_0.0.1_1683783101137_0.4364728921849421","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@awaismirza/angular2-text-mask","version":"0.0.2","author":{"url":"https://github.com/awaismirza","name":"Awais Jamil","email":"owaesmirza@gmail.com"},"_id":"@awaismirza/angular2-text-mask@0.0.2","maintainers":[{"name":"awaismirza","email":"owaesmirza@gmail.com"}],"homepage":"https://github.com/awaismirza/angular-wrappers#readme","bugs":{"url":"https://github.com/awaismirza/angular-wrappers/issues"},"dist":{"shasum":"b4b795c13bf6c3d79539ca1a6c32ad83c3db3ed1","tarball":"https://registry.npmjs.org/@awaismirza/angular2-text-mask/-/angular2-text-mask-0.0.2.tgz","fileCount":10,"integrity":"sha512-zhAp4evEND0CwKvV0S6ggQY2SacsU99qCWFSyDUqah/fCDZL3N0LS5CxkOXZziKs/mbHFaAFuFZHqrRvitN5GA==","signatures":[{"sig":"MEYCIQD4RU+XFtdZaEmepcQB01D1EgZT5XzJAP0vmU83uA2mXgIhAKOFwCgibMZfBEtpawnNgYwf8ACWYD/zmsAMvJ5qN0ew","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40222},"module":"fesm2022/awaismirza-angular2-text-mask.mjs","exports":{".":{"esm":"./esm2022/awaismirza-angular2-text-mask.mjs","types":"./index.d.ts","default":"./fesm2022/awaismirza-angular2-text-mask.mjs","esm2022":"./esm2022/awaismirza-angular2-text-mask.mjs"},"./package.json":{"default":"./package.json"}},"gitHead":"f64cc02ac2174e8b332a2757b368c48b1fa69466","typings":"index.d.ts","_npmUser":{"name":"awaismirza","email":"owaesmirza@gmail.com"},"repository":{"url":"git+https://github.com/awaismirza/angular-wrappers.git","type":"git"},"_npmVersion":"9.5.1","description":"## Getting started","directories":{},"sideEffects":false,"_nodeVersion":"18.16.0","dependencies":{"tslib":"^2.3.0","text-mask-core":"^5.1.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"peerDependencies":{"@angular/core":"^16.0.0","@angular/common":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/angular2-text-mask_0.0.2_1683786991787_0.95156749093034","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@awaismirza/angular2-text-mask","version":"0.0.4","peerDependencies":{"@angular/common":">=16.0.0","@angular/core":">=16.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"dependencies":{"text-mask-core":"^5.1.2","tslib":"^2.3.0"},"repository":{"type":"git","url":"git+https://github.com/awaismirza/angular-wrappers.git"},"author":{"name":"Awais Jamil","email":"owaesmirza@gmail.com","url":"https://github.com/awaismirza"},"sideEffects":false,"gitHead":"1abaf32855643eb53f10a60635d489c027d583fc","_id":"@awaismirza/angular2-text-mask@0.0.4","description":"First, install it.","bugs":{"url":"https://github.com/awaismirza/angular-wrappers/issues"},"homepage":"https://github.com/awaismirza/angular-wrappers#readme","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-MPhWbJMQEy689cS7FcmuGgoSfSTCJxrOqIP4NbkspLpf+fNzAdLuaA3xbskMHrvvMLJ3RQk5m2pv4Oa0JJR75g==","shasum":"45b970078c50fdc02a5e58300b4f771ae8c3bbd4","tarball":"https://registry.npmjs.org/@awaismirza/angular2-text-mask/-/angular2-text-mask-0.0.4.tgz","fileCount":8,"unpackedSize":8026,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEjRFTIUc1TH7Lxi2mOhVgkyMDbFRc7Wt5rMv89UDEt4AiAsODDv3W32hlP5Na8nY7Cls/O6oUBn0BeFbg7PHQ+ZOA=="}]},"_npmUser":{"name":"awaismirza","email":"owaesmirza@gmail.com"},"directories":{},"maintainers":[{"name":"awaismirza","email":"owaesmirza@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/angular2-text-mask_0.0.4_1776357821988_0.47743918128117024"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T05:31:41.076Z","modified":"2026-04-16T16:43:42.259Z","0.0.1":"2023-05-11T05:31:41.293Z","0.0.2":"2023-05-11T06:36:31.958Z","0.0.4":"2026-04-16T16:43:42.142Z"},"bugs":{"url":"https://github.com/awaismirza/angular-wrappers/issues"},"author":{"name":"Awais Jamil","email":"owaesmirza@gmail.com","url":"https://github.com/awaismirza"},"homepage":"https://github.com/awaismirza/angular-wrappers#readme","repository":{"type":"git","url":"git+https://github.com/awaismirza/angular-wrappers.git"},"description":"First, install it.","maintainers":[{"name":"awaismirza","email":"owaesmirza@gmail.com"}],"readme":"# Angular 2 Input Mask\n\n## Getting started\n\nFirst, install it.\n\n```bash\nnpm i --save @awaismirza/angular2-text-mask\n```\n\nThen, import it into your `@NgModule`:\n\n```typescript\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { TextMaskModule } from 'angular2-text-mask';\n\n@NgModule({\n  imports: [\n    FormsModule,\n    TextMaskModule\n  ],\n  declarations: []\n})\nexport class MyModule {}\n```\n\nThen, use it in your component:\n```typescript\n@Component({\n  selector: 'app',\n  template: `\n    <input [textMask]=\"{mask: mask}\" [(ngModel)]=\"myModel\" type=\"text\"/>\n  `\n})\nexport class AppComponent {\n  public myModel = ''\n  public mask = ['(', /[1-9]/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/]\n}\n```\n\n## Documentation\n\nAs you can see in the code above, you are passing an object to the `textMask` directive.\n\n#### Other use-cases\n\n##### Unmasking the value that is stored in the model\n\nText Mask does not provide an option to unmask the model before storing it. You can sanitize the model on your\nside. See [here](https://github.com/text-mask/text-mask/issues/109) for details.\n\n##### `change` doesn't work\n\n`change` on an input field will not work if `[text-mask]` is present. You can use `(ngModelChange)` instead. For more\ninformation, see [this page](https://github.com/text-mask/text-mask/issues/236).\n\n## Example\n\nTo see an example of the code running, follow these steps:\n\n1. Clone the repo, `git clone git@github.com:text-mask/text-mask.git`\n1. `cd text-mask`\n1. `cd angular2`\n1. `npm install`\n1. `npm start`\n1. Open [http://localhost:3000](http://localhost:3000)\n\nThe code of the example is in [`angular2/example`](https://github.com/text-mask/text-mask/tree/master/angular2/example).\n\n## Bye me a Coffee: https://paypal.me/tipawais","readmeFilename":"README.md"}