Press "Enter" to skip to content

Simple Password Strength Meter For Vue Component Plugin

Vue Password Meter is a simple password checker written in vanilla js and extremely lightweight (3.2 KB minified + Gzipped).

password strength checker html code, jquery password strength meter, password strength checker javascript, simple password strength checker javascript, best password strength checker

How to make use of it:

Install and download:

$ npm install vue-simple-password-meter --save

1. Import the password counter into your project.

import passwordMeter from "vue-simple-password-meter";

export default {
  components: { passwordMeter },
  data: () => ({
    passwordValue: null

2. Add a password strength meter to the template.

    <label for="password">Password:</label>
    <input id="password" type="password" v-model="passwordValue" />
    <password-meter :password="passwordValue" />

3. Customize the strength indicator in CSS.

.po-password-strength-bar {
  border-radius: 2px;
  transition: all 0.2s linear;
  height: 5px;
  margin-top: 8px;

.po-password-strength-bar.risky {
  background-color: #f95e68;

.po-password-strength-bar.guessable {
  background-color: #fb964d;

.po-password-strength-bar.weak {
  background-color: #fdd244;
} {
  background-color: #b0dc53;
} {
  background-color: #35cc62;

4. Events.

<password-meter :password="passwordValue" @score="onScore" />
export default {
  components: { passwordMeter },
  data: () => ({
    passwordValue: null,
    score: null
  methods: {
    onScore({ score, strength }) {
      console.log(score); // from 0 to 4
      console.log(strength); // one of : 'risky', 'guessable', 'weak', 'safe' , 'secure' 
      this.score = score;

Simple Lightweight Password Meter, vue simple password meter Plugin/Github, password strength checker javascript regex, vue 3 password meter

See Demo And Download

Official Website(miladd3): Click Here

This superior jQuery/javascript plugin is developed by miladd3. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.