{"id":23366734,"url":"https://github.com/d8corp/strong-password-checker","last_synced_at":"2025-04-07T23:16:03.026Z","repository":{"id":57372883,"uuid":"335710447","full_name":"d8corp/strong-password-checker","owner":"d8corp","description":"The Password Checker returns a count of steps to pass the validation","archived":false,"fork":false,"pushed_at":"2021-02-05T13:58:32.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T09:03:58.076Z","etag":null,"topics":[],"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/d8corp.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}},"created_at":"2021-02-03T17:58:32.000Z","updated_at":"2021-02-05T13:58:34.000Z","dependencies_parsed_at":"2022-08-29T11:10:17.379Z","dependency_job_id":null,"html_url":"https://github.com/d8corp/strong-password-checker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fstrong-password-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fstrong-password-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fstrong-password-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fstrong-password-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d8corp","download_url":"https://codeload.github.com/d8corp/strong-password-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744329,"owners_count":20988783,"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":[],"created_at":"2024-12-21T14:17:29.152Z","updated_at":"2025-04-07T23:16:02.996Z","avatar_url":"https://github.com/d8corp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strong-password-checker\n[![NPM](https://img.shields.io/npm/v/strong-password-checker.svg)](https://github.com/d8corp/strong-password-checker/blob/master/CHANGELOG.md)\n[![minzipped size](https://img.shields.io/bundlephobia/minzip/strong-password-checker)](https://bundlephobia.com/result?p=strong-password-checker)\n[![downloads](https://img.shields.io/npm/dm/strong-password-checker.svg)](https://www.npmjs.com/package/strong-password-checker)\n[![license](https://img.shields.io/npm/l/strong-password-checker)](https://github.com/d8corp/strong-password-checker/blob/master/LICENSE)  \nThe Password Checker returns a count of steps to pass the validation.  \nThis is a solution for [the challenge](https://leetcode.com/problems/strong-password-checker/).\n### Installation\nnpm\n```bash\nnpm i strong-password-checker\n```\nyarn\n```bash\nyarn add strong-password-checker\n```\n\nAlso, you can download a minified js file\n[here](https://github.com/d8corp/strong-password-checker/blob/master/lib/strong-password-checker.min.js).  \n*It adds only `strongPasswordChecker` to global scope.*  \n\n### Using\nThis is a pure function, just provide a password and get the result.\n```typescript\nimport strongPasswordChecker from 'strong-password-checker'\n\nstrongPasswordChecker('a') // 5\n```\nYou may use optional arguments, they have default values\n```typescript\nfunction strongPasswordChecker (\n  pass: string,\n  minLength = 6,\n  maxLength = 20,\n  maxRepeat = 3,\n  charConditions = [/[0-9]/, /[a-z]/, /[A-Z]/]\n): number {}\n```\n### Issues\nIf you find a bug or have a suggestion, please file an issue on [GitHub](https://github.com/d8corp/innet/issues).  \n[![issues](https://img.shields.io/github/issues-raw/d8corp/innet)](https://github.com/d8corp/innet/issues)  \n\u003e ---\n[![stars](https://img.shields.io/github/stars/d8corp/innet?style=social)](https://github.com/d8corp/innet/stargazers)\n[![watchers](https://img.shields.io/github/watchers/d8corp/innet?style=social)](https://github.com/d8corp/innet/watchers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Fstrong-password-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd8corp%2Fstrong-password-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Fstrong-password-checker/lists"}