A Vue.js 3 plugin for generating random passwords with customizable options.
You can install the package using npm or yarn:
npm install vue3-password-generate
# or
yarn add vue3-password-generate
<template>
<div>
<!-- Include the PasswordGenerator component -->
<PasswordGenerator />
<!-- Button to generate and log a password with default options -->
<button @click="generateDefaultPassword">Generate Default Password</button>
<!-- Button to generate and log a password with custom options -->
<button @click="generateCustomPassword">Generate Custom Password</button>
</div>
</template>
<script>
import { PasswordGenerator } from "vue3-password-generate";
export default {
components: {
PasswordGenerator,
},
methods: {
generateDefaultPassword() {
// Default options
const password = this.$generatePassword();
console.log("Default Password:", password);
},
generateCustomPassword() {
// Custom options
const password = this.$generatePassword({
includeUppercase: true,
includeNumbers: true,
includeSymbols: false,
passwordLength: 28,
});
console.log("Custom Password:", password);
},
},
};
</script>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
vue-internet-checker © Harsh Mendapara, Released under the MIT License.
Authored and maintained by Harsh Mendapara with help from contributors (list).
GitHub @Harsh Mendapara
Gmail @Harsh Mendapara
Linkedin @Harsh Mendapara