{"id":19368819,"url":"https://github.com/mlezcano1985/rut","last_synced_at":"2025-07-20T09:41:45.370Z","repository":{"id":34635135,"uuid":"181037543","full_name":"mlezcano1985/rut","owner":"mlezcano1985","description":"Format and validate rut (Chile) number between 2 and 10 digits for browser and NodeJS","archived":false,"fork":false,"pushed_at":"2023-03-04T03:34:23.000Z","size":375,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T00:08:37.932Z","etag":null,"topics":["chile","format","formatter","rut"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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-04-12T15:41:55.000Z","updated_at":"2021-06-25T21:35:08.000Z","dependencies_parsed_at":"2025-01-06T22:48:48.482Z","dependency_job_id":"791a1586-ac76-4fc7-9428-487dda2515e3","html_url":"https://github.com/mlezcano1985/rut","commit_stats":{"total_commits":5,"total_committers":3,"mean_commits":"1.6666666666666667","dds":0.4,"last_synced_commit":"0bb8a3fb4828fcf77085a46cea7b5ff3f784a3cb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlezcano1985/rut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Frut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Frut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Frut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Frut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlezcano1985","download_url":"https://codeload.github.com/mlezcano1985/rut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlezcano1985%2Frut/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266102106,"owners_count":23876785,"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","format","formatter","rut"],"created_at":"2024-11-10T08:08:55.662Z","updated_at":"2025-07-20T09:41:45.300Z","avatar_url":"https://github.com/mlezcano1985.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RUT FORMATTER\n\n![GitHub](https://img.shields.io/github/license/mlezcano1985/rut)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/mlezcano1985/rut?include_prereleases)\n![GitHub Workflow Status](https://github.com/mlezcano1985/rut/actions/workflows/node.js.yml/badge.svg)\n\nFormat and validate rut (Chile) number between 2 and 10 digits for browser and NodeJS.\n\n# How to install?\n\n```\nnpm install --save @mlezcano1985/rut-formatter\n```\n\n# Example\n\nOn example folder, you find out Web and NodeJS examples. Install dependencies using: `npm install`.\n\n## Web\n\nAfter install dependencies, run using a web server.\n\n## NodeJS\n\nIf you are test on NodeJS, you can run NodeJS example using this task: `npm start`.\n\n# How to use in NodeJS?\n\n```\nconst rut = require('@mlezcano1985/rut-formatter');\nconst value = \"111111\";\nconsole.log(rut.format(value));\n```\n\nTerminal should show _11.111-1_. Valid rut.\n\n```\nconst rut = require('@mlezcano1985/rut-formatter');\nconst value = \"1\";\nconsole.log(rut.format(value));\n```\n\nTerminal should show _null_. Invalid rut.\n\n# Support\n\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/rut/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%2Frut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlezcano1985%2Frut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlezcano1985%2Frut/lists"}