{"id":19368827,"url":"https://github.com/mlezcano1985/ngxrutformatter","last_synced_at":"2026-05-07T16:41:54.328Z","repository":{"id":98193956,"uuid":"188467161","full_name":"mlezcano1985/ngxRutFormatter","owner":"mlezcano1985","description":"Angular module to format and validate rut (Chile) number using library:","archived":false,"fork":false,"pushed_at":"2019-05-24T20:22:48.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T01:17:27.933Z","etag":null,"topics":["chile","chilean-rut","rut"],"latest_commit_sha":null,"homepage":"https://github.com/mlezcano1985/rut","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/mlezcano1985.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":"2019-05-24T18:07:26.000Z","updated_at":"2019-05-24T20:22:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c34996d-5ed4-44db-9b24-d8356b2d8cb1","html_url":"https://github.com/mlezcano1985/ngxRutFormatter","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"e8a459a32126786a920712af2d2b20a917dd2a89"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2FngxRutFormatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2FngxRutFormatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2FngxRutFormatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2FngxRutFormatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlezcano1985","download_url":"https://codeload.github.com/mlezcano1985/ngxRutFormatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491825,"owners_count":19809977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chile","chilean-rut","rut"],"created_at":"2024-11-10T08:08:56.285Z","updated_at":"2026-05-07T16:41:54.301Z","avatar_url":"https://github.com/mlezcano1985.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgxRutFormatter\n\nAngular module to format and validate rut (Chile) number using [https://github.com/mlezcano1985/rut](https://github.com/mlezcano1985/rut)\n\n# Demo\nYou can view an example [here](https://github.com/mlezcano1985/angular_examples).\n\n# How to install?\n```\nnpm install --save @mlezcano1985/ngx-rut-formatter\n```\n\n# How to use it?\nOnce you have installed it, you can import `NgxRutFormatterModule` from `@mlezcano1985/ngx-rut-formatter` in any application module. E.g.\n\n```\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { NgxRutFormatterModule } from '@mlezcano1985/ngx-rut-formatter';\nimport { FormsModule } from '@angular/forms';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    AppRoutingModule,\n    NgxRutFormatterModule,\n    FormsModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n## Use as directive\n```\n\u003cform name=\"f\"\u003e\n  \u003cinput type=\"text\" name=\"rut\" ngxRutFormatter name=\"text\" [(ngModel)]=\"modelRut\" #modelRutInput=\"ngModel\" required\u003e\n  \u003cinput type=\"button\" value=\"submit\" [disabled]=\"modelRutInput.errors\"\u003e\n\u003c/form\u003e\n```\n\n## Use as Pipe\n```\n{{'12345444' | ngxRutFormatter}}\n```\n**Output**: 1.234.544-4 \n\n```\n{{'23,ll' | ngxRutFormatter }}\n```\n**Output**: empty string\n\n## Use as Service\n```\nimport { NgxRutFormatterService } from '@mlezcano1985/ngx-rut-formatter';\n```\n\n```\n const value = 12345444;\n const clear = this.rutService.clean(value);\n const val = this.rutService.format(clear);\n return val;\n```\n\n# Support\nIf you are having general issues with this package, feel free to contact me on [Twitter](https://twitter.com/mlezcano1985).\n\nIf you believe you have found an issue, please report it using the [GitHub issue tracker](https://github.com/mlezcano1985/ngxRutFormatter/issues), or better yet, fork the repository and submit a pull request.\n\nIf you're using this package, I'd love to hear your thoughts. Thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlezcano1985%2Fngxrutformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlezcano1985%2Fngxrutformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlezcano1985%2Fngxrutformatter/lists"}