{"id":32966546,"url":"https://github.com/amarkes/br-mask","last_synced_at":"2026-01-12T02:04:38.265Z","repository":{"id":57137377,"uuid":"147748491","full_name":"amarkes/br-mask","owner":"amarkes","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-09T21:15:05.000Z","size":39,"stargazers_count":117,"open_issues_count":28,"forks_count":54,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-06T04:29:55.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amarkes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T00:22:46.000Z","updated_at":"2025-04-10T17:57:08.000Z","dependencies_parsed_at":"2024-06-18T17:06:18.666Z","dependency_job_id":"4ef24696-04d8-461b-8193-95edecaf3a83","html_url":"https://github.com/amarkes/br-mask","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/amarkes/br-mask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarkes%2Fbr-mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarkes%2Fbr-mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarkes%2Fbr-mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarkes%2Fbr-mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amarkes","download_url":"https://codeload.github.com/amarkes/br-mask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarkes%2Fbr-mask/sbom","scorecard":{"id":188405,"data":{"date":"2025-08-11","repo":{"name":"github.com/amarkes/br-mask","commit":"16c1331fd78fc2c8d3ef5a2749e54e36bcfc4b57"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 5/20 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T20:11:52.997Z","repository_id":57137377,"created_at":"2025-08-16T20:11:52.997Z","updated_at":"2025-08-16T20:11:52.997Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-13T03:00:23.616Z","updated_at":"2026-01-12T02:04:38.251Z","avatar_url":"https://github.com/amarkes.png","language":"TypeScript","funding_links":[],"categories":["Components"],"sub_categories":["Form / Input"],"readme":"### deprecated\n- I no longer have the maintenance for this project, in case anyone wants to take over just contact me\n\n# brmasker-ionic\n\n[![GitHub issues](https://img.shields.io/github/issues/amarkes/br-mask.svg)](https://github.com/amarkes/br-mask/issues)\n[![GitHub stars](https://img.shields.io/github/stars/amarkes/br-mask.svg)](https://github.com/amarkes/br-mask/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/amarkes/br-mask.svg)](https://github.com/amarkes/br-mask/network)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/amarkes/br-mask/master/LICENSE)\n[![Build Status](https://travis-ci.org/amarkes/br-mask.svg?branch=master)](https://travis-ci.org/amarkes/br-mask)\n\n\nreturn custom mask in input for ionic 4\n\n# Required\n- Node: 10.7.0\n- npm 6.4.0\n- ionic 4.1.2\n- Angular CLI: 6.1.2\n\n# install\n\n```sh\nnpm install br-mask --save -E\n```\n\n# Usage\n\n```javascript\nimport { BrMaskerModule } from 'br-mask';\n\n@NgModule({\n  imports: [\n    BrMaskerModule\n  ],\n})\n\n```\n\n### HTML\n\n```html\n \u003cform [formGroup]=\"form\"\u003e\n    \u003cion-item\u003e\n      \u003cion-input required type=\"text\" formControlName=\"mask\"  placeholder=\"First Name\" [brmasker]=\"{mask:'00-00', len:5, userCaracters: true}\"\u003e\u003c/ion-input\u003e\n    \u003c/ion-item\u003e\n  \u003c/form\u003e\n\n```\n\n### Other Examples\n\n```html\n\u003cion-item\u003e\n    \u003cion-input type=\"text\" formControlName=\"mask\"  placeholder=\"Mask\" [brmasker]=\"{mask: '00:00', type:'num'}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n\n\u003cion-item\u003e\n    \u003cion-input type=\"text\" formControlName=\"mask\"  placeholder=\"Mask\" [brmasker]=\"{userCaracters: true}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n\n```\n\n### Example for CPF/CNPJ 999.999.999-99 / 99.999.999/9999-99\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" name=\"cpf\" formControlName=\"mask\" placeholder=\"CPF/CNPJ\" [brmasker]=\"{person: true}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n### Example for Real 999,99\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" name=\"money\" formControlName=\"mask\" placeholder=\"(R$) Real\" [brmasker]=\"{money: true}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n### Example for Money\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" formControlName=\"mask\" name=\"money\" placeholder=\"Money\" [brmasker]=\"{money: true, thousand: ',',  decimalCaracter: '.', decimal: '3'}\"\u003e\u003c/ion-input\u003e \n\u003c/ion-item\u003e\n```\n\n### Example for Real 99,999 With Decimal\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" name=\"money\" formControlName=\"mask\" placeholder=\"(R$) Real\" [brmasker]=\"{money: true, decimal: 3}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n### Example for Real 99,999 With Decimal\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" name=\"percent\" formControlName=\"mask\" placeholder=\"% Percent\" [brmasker]=\"{percent: true}\" value=\"\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n### Example for Phone (99) 9999-9999 / (99) 99999-9999\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" name=\"phone\" formControlName=\"mask\" placeholder=\"Phone\" [brmasker]=\"{phone: true}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n### Example for Phone not ddd 9999-9999 / 99999-9999\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" name=\"phone\" formControlName=\"mask\" placeholder=\"Phone\" [brmasker]=\"{phoneNotDDD: true}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n### Example for number thousand\n\n```html\n\u003cion-item\u003e\n\t\u003cion-input type=\"text\" formControlName=\"phone\" [value]=\"form.get('phone').value\" name=\"phone\" placeholder=\"Phone\" [brmasker]=\"{numberAndTousand: true, thousand: ','}\"\u003e\u003c/ion-input\u003e\n\u003c/ion-item\u003e\n```\n\n# Features\n```js\nimport { BrMaskDirective, BrMaskModel } from 'br-mask';\n\n...\n\nconstructor(public brMask: BrMaskDirective) {}\n\n...\n\nprotected createForm(): FormGroup {\n  return new FormGroup({\n    phone: new FormControl(this.createPhone())\n  });\n}\n\nprivate createPhone(): string {\n  const config: BrMaskModel = new BrMaskModel();\n  config.phone = true;\n  return this.brMask.writeCreateValue('99999999999', config);\n}\n```\n\n# Inputs\n\n* brmasker: BrMaskModel\n\n```ts\n\tBrMaskModel = {\n\t\tform: AbstractControl;\n\t\tmask: string;\n\t\tlen: number;\n\t\tmoney: boolean;\n\t\tphone: boolean;\n\t\tphoneNotDDD: boolean;\n\t\tperson: boolean;\n\t\tpercent:boolean;\n\t\ttype: 'alfa' | 'num' | 'all';\n\t\tdecimal: number = 2;\n\t\tdecimalCaracter: string = `,`;\n\t\tthousand: string;\n\t\tuserCaracters = false;\n\t\tnumberAndTousand: false,\n\t\tmoneyInitHasInt: true\n\t}\n```\n\n\n| Name | type | info |\n| ------ | ------ | ------ |\n| form | FormControl | Obsolete |\n| mask | string | Optional |\n| len | string | Optional |\n| money | boolean | Optional |\n| phone | boolean | Optional |\n| phoneNotDDD | boolean | Optional |\n| person | boolean | Optional |\n| percent | boolean | Optional |\n| type | string | Optional default 'all' |\n| decimalCaracter | string | Optional default ','  |\n| decimal | number | Optional default '2' |\n| thousand | string | Optional |\n| userCaracters | boolean | Optional default `false` |\n| numberAndTousand | boolean | Optional default `false` |\n| moneyInitHasInt | boolean | Optional default `true` |\n\n\n`moneyInitHasInt is when you need to use cents in value` \n\n\n\n# Characters\n\n`- . / ( ) , * + @ # $ \u0026 % :`\n\n\n\n# Build for developer\n\n### Only use if you change the component\n\n### Build\n\n```sh\nnpm run build\n```\n\n### Publish\n\n```sh\nnpm publish\n```\n\n# Changelog\n\n### 0.0.9\n\n- pull issues\n\n### 0.0.8\n\n- change phone mask for accept 11 digits\n\n### 0.0.7\n\n- removing the need to declare the form\n\n### 0.0.6\n\n- remove console log\n\n### 0.0.5\n\n- add prop moneyInitHasInt\n\n# Changelog\n\n### 0.0.4\n\n- add phoneNotDDD\n\n### 0.0.3\n\n- fix numberAndTousand\n\n### v0.0.2\n\n- add number thousand\n\n### v0.0.1\n\n- Inicial project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarkes%2Fbr-mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famarkes%2Fbr-mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarkes%2Fbr-mask/lists"}