{"id":19621306,"url":"https://github.com/commenthol/is-password-pwned","last_synced_at":"2025-08-05T06:21:41.081Z","repository":{"id":47089076,"uuid":"144442922","full_name":"commenthol/is-password-pwned","owner":"commenthol","description":"Check password against pwnedpasswords.com using k-anonimity model","archived":false,"fork":false,"pushed_at":"2022-06-06T19:34:12.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T17:48:11.089Z","etag":null,"topics":["k-anon","password","passwords","pwned-passwords","pwnedpasswords","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commenthol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-12T06:18:51.000Z","updated_at":"2022-06-06T19:34:15.000Z","dependencies_parsed_at":"2022-08-28T08:22:13.453Z","dependency_job_id":null,"html_url":"https://github.com/commenthol/is-password-pwned","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fis-password-pwned","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fis-password-pwned/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fis-password-pwned/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fis-password-pwned/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commenthol","download_url":"https://codeload.github.com/commenthol/is-password-pwned/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240914940,"owners_count":19878067,"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":["k-anon","password","passwords","pwned-passwords","pwnedpasswords","security"],"created_at":"2024-11-11T11:22:18.769Z","updated_at":"2025-02-26T18:45:57.060Z","avatar_url":"https://github.com/commenthol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-password-pwned\n\n\u003e Check password against pwnedpasswords.com using k-anonimity model\n\n[![NPM version](https://badge.fury.io/js/is-password-pwned.svg)](https://www.npmjs.com/package/is-password-pwned/)\n[![Build Status](https://app.travis-ci.com/commenthol/is-password-pwned.svg?branch=master)](https://app.travis-ci.com/commenthol/is-password-pwned)\n\nSee [Searching pwned passwords by range][].    \nCaches all found hashes in LRU cache.\n\nRuns in node and modern browsers.\n\n## CLI\n\nFor using from the command line\n\n```bash\n$ npm i -g is-password-pwned\n$ pwned\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### constructor\n\n**Parameters**\n\n-   `size` **[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** size of lru cache (optional, default `10000`)\n\n**Examples**\n\n```javascript\nimport Pwnd from 'is-password-pwned'\n\nconst pwnd = new Pwnd()\nconst num = await pwnd.get('nutella')\n//\u003e num = 20833\n```\n\n### get\n\nget password from lru cache or request it from pwnedpasswords.com\nif `num === undefined` password hash could not be found in pwnedpasswords.com\n\n**Parameters**\n\n-   `password` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** password to verify\n\nReturns **await {Number}** num - number of found hashes\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install is-password-pwned\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n## License\n\nUnlicense https://unlicense.org\n\n## References\n\n- [Searching pwned passwords by range][]\n\n[Searching pwned passwords by range]: https://haveibeenpwned.com/API/v2#SearchingPwnedPasswordsByRange\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fis-password-pwned","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommenthol%2Fis-password-pwned","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fis-password-pwned/lists"}