1.0.0 • Published 7 years ago

polymer-password-strength v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

<password-strength>

A Polymer password strength indicator, powered by zxcvbn

Build Status Bower version npm version Published on webcomponents.org Polymer 2 only

Live demo ↗

<div id="random-password"></div>
<password-strength></password-strength>

<script>
  const passwordStrength = document.querySelector('password-strength')
  setInterval(() => {
    const random = Math.random().toString(36).substring(Math.random()*10)
    passwordStrength.password = random
    document.querySelector('#random-password').innerText = 'Current password: ' + random
  }, 1000)
</script>

Installation

bower install --save polymer-password-strength

Usage

<link rel="import" href="bower_components/polymer-password-strength/password-strength.html">

<password-strength password="[[ password ]]"></password-strength>
1.0.0

7 years ago

0.1.0

7 years ago