{"id":13546549,"url":"https://github.com/elboletaire/password-strength-meter","last_synced_at":"2025-04-07T07:17:56.992Z","repository":{"id":18605600,"uuid":"84665754","full_name":"elboletaire/password-strength-meter","owner":"elboletaire","description":":key: A password strength meter for jQuery","archived":false,"fork":false,"pushed_at":"2022-01-27T09:55:45.000Z","size":21354,"stargazers_count":107,"open_issues_count":12,"forks_count":46,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T05:06:41.789Z","etag":null,"topics":["javascript","jquery","jquery-plugin","password-strength","password-strength-meter","plugin"],"latest_commit_sha":null,"homepage":"https://elboletaire.github.io/password-strength-meter/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elboletaire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-11T16:57:36.000Z","updated_at":"2024-01-18T05:16:06.000Z","dependencies_parsed_at":"2022-08-07T09:00:50.584Z","dependency_job_id":null,"html_url":"https://github.com/elboletaire/password-strength-meter","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/elboletaire%2Fpassword-strength-meter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elboletaire%2Fpassword-strength-meter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elboletaire%2Fpassword-strength-meter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elboletaire%2Fpassword-strength-meter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elboletaire","download_url":"https://codeload.github.com/elboletaire/password-strength-meter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608160,"owners_count":20965953,"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":["javascript","jquery","jquery-plugin","password-strength","password-strength-meter","plugin"],"created_at":"2024-08-01T12:00:39.988Z","updated_at":"2025-04-07T07:17:56.965Z","avatar_url":"https://github.com/elboletaire.png","language":"JavaScript","funding_links":[],"categories":["Laravel-Auth"],"sub_categories":["Environment File"],"readme":"Password Strength Meter plugin for jQuery\n=========================================\n\n[![Build status][build svg]][build status]\n[![Code coverage][coverage svg]][coverage]\n[![License][license svg]][license]\n[![Latest stable version][releases svg]][releases]\n[![Total downloads][downloads svg]][downloads]\n[![Code climate][climate svg]][climate]\n[![jsDelivr CDN][jsdelivr svg]][jsdelivr]\n\nA password strength meter for jQuery. [Give it a try!][web]\n\n![password example][example]\n\n\nInstallation\n------------\n\nUsing npm\n\n~~~bash\nnpm install --save password-strength-meter\n~~~\n\nUsing bower\n\n~~~bash\nbower install --save password-strength-meter\n~~~\n\nOr much better, using yarn\n\n~~~bash\nyarn add password-strength-meter\n~~~\n\nFor manual installations check out the [releases][releases] section for tarballs.\n\nUsage\n-----\n\nImport the required scripts:\n\n~~~html\n\u003cscript src=\"./js/password-strength-meter/password.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"./js/password-strength-meter/password.min.css\"\u003e\u003c/script\u003e\n~~~\n\nEnsure your password field has a wrapper div, like in Bootstrap:\n\n~~~html\n\u003cdiv class=\"form-group\"\u003e\n  \u003clabel for=\"password\"\u003e\n    Password\n  \u003c/label\u003e\n  \u003cinput id=\"password\" type=\"password\" class=\"form-control\" /\u003e\n\u003c/div\u003e\n~~~\n\nAnd call the plugin when you wanna enable it:\n\n~~~javascript\n$('#password').password({ /* options */ });\n~~~\n\n### Available options\n\nHere's the list of available options you can pass to the `password` plugin:\n\n~~~javascript\n$('#password').password({\n  enterPass: 'Type your password',\n  shortPass: 'The password is too short',\n  containsField: 'The password contains your username',\n  steps: {\n    // Easily change the steps' expected score here\n    13: 'Really insecure password',\n    33: 'Weak; try combining letters \u0026 numbers',\n    67: 'Medium; try using special characters',\n    94: 'Strong password',\n  },\n  showPercent: false,\n  showText: true, // shows the text tips\n  animate: true, // whether or not to animate the progress bar on input blur/focus\n  animateSpeed: 'fast', // the above animation speed\n  field: false, // select the match field (selector or jQuery instance) for better password checks\n  fieldPartialMatch: true, // whether to check for partials in field\n  minimumLength: 4, // minimum password length (below this threshold, the score is 0)\n  useColorBarImage: true, // use the (old) colorbar image\n  customColorBarRGB: {\n    red: [0, 240],\n    green: [0, 240],\n    blue: 10,\n  } // set custom rgb color ranges for colorbar.\n});\n~~~\n\n*NOTE*: The custom color bar values use rgb color codes within a reasonable range. The blue must be a single value as we\nneed a base value on which to calculate the color changes.\n\n### Events\n\nThere are two events fired by the `password` plugin:\n\n~~~javascript\n$('#password').on('password.score', (e, score) =\u003e {\n  console.log('Called every time a new score is calculated (this means on every keyup)')\n  console.log('Current score is %d', score)\n})\n\n$('#password').on('password.text', (e, text, score) =\u003e {\n  console.log('Called every time the text is changed (less updated than password.score)')\n  console.log('Current message is %s with a score of %d', text, score)\n})\n~~~\n\nCompatiblity\n------------\n\nThis plugin was originally created in 2010 for jQuery 1.14, and the current release\nhas been tested under jQuery 1, 2 \u0026 3.\n\nIt should work in all browsers (even IE 666).\n\nTesting\n-------\n\nFirst you'll need to grab the code, as the npm version does not come with the\nsource files:\n\n~~~bash\ngit clone https://github.com/elboletaire/password-strength-meter.git\ncd password-strength-meter\nnpm install\nnpm test\n~~~\n\n\u003e Note: tests are just run using jQuery 3.\n\nWhy?\n----\n\nWhy another library? Well, I found this on March 11th (of 2017) cleaning up my\ndocuments folder and noticed I made it in 2010 and never published it, so I\ndecided to refactor it \"a bit\" (simply remade it from the ground-up) and publish\nit, so others can use it.\n\nCredits\n-------\n\nCreated by Òscar Casajuana \u003celboletaire at underave dot net\u003e.\n\nBased on unlicensed work by [Firas Kassem][firas], published in 2007 and modified\nby Amin Rajaee in 2009.\n\nThis code is licensed under a [GPL 3.0 license][license].\n\n[example]: src/example.png\n[firas]: https://phiras.wordpress.com/2009/07/29/password-strength-meter-v-2/\n[license]: LICENSE.md\n[web]: https://elboletaire.github.io/password-strength-meter/\n\n[build status]: https://gitlab.com/elboletaire/password-strength-meter/pipelines\n[coverage]: https://gitlab.com/elboletaire/password-strength-meter/-/jobs\n[license]: https://github.com/elboletaire/password-strength-meter/blob/master/LICENSE.md\n[releases]: https://github.com/elboletaire/password-strength-meter/releases\n[downloads]: https://www.npmjs.com/package/password-strength-meter\n[climate]: https://codeclimate.com/github/elboletaire/password-strength-meter\n[jsdelivr]: https://www.jsdelivr.com/package/npm/password-strength-meter\n\n[build svg]: https://gitlab.com/elboletaire/password-strength-meter/badges/master/pipeline.svg\n[coverage svg]: https://gitlab.com/elboletaire/password-strength-meter/badges/master/coverage.svg\n[license svg]: https://img.shields.io/github/license/elboletaire/password-strength-meter.svg\n[releases svg]: https://img.shields.io/npm/v/password-strength-meter.svg\n[downloads svg]: https://img.shields.io/npm/dt/password-strength-meter.svg\n[climate svg]: https://img.shields.io/codeclimate/maintainability/elboletaire/password-strength-meter.svg\n[jsdelivr svg]: https://data.jsdelivr.com/v1/package/npm/password-strength-meter/badge?style=rounded\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felboletaire%2Fpassword-strength-meter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felboletaire%2Fpassword-strength-meter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felboletaire%2Fpassword-strength-meter/lists"}