A password strength checker for Vue js
npm install vue-password-checkerA configurable password strength checker for Vue js
#### Github Repo
#### NPM
Vue password checker can be installed with both npm and yarn as usual.
``bash
npm install vue-password-checker
yarn add vue-password-checker
`
And then can be imported into your project.
`js`
import 'PasswordChecker' from "vue-password-checker";
Vue Password checker takes the following props for configuration:
Type: String
The variable to be checked.
required
Type: Boolean
Used to define the font the text will use.
default: false
Type: Object
Used to define the colors the strength bar and text will use.
default:
`js`
{
invalid: '#000',
very_weak: '#FFF',
weak: '#d44137',
good: '#e36e0e',
strong: '#c4c934',
very_strong: '#24ed09',
}
Type: Boolean
When true, a list will be shown instructing what counts as strong password.
default: false
Type: Number
The minimum length the password checker should look for.
default: 6
In order to get the strength value for the password the component is tracking, you can use the getStrength() function, a value from 0 to 100 is returned.
`js
`
The password checker has a slot for inputs to sit in so can be used in this way:
`js
`
Or separately
` js
``