PasswordGeneratorSvelte is a Svelte component that allows for generating random passwords with options to choose the length and to enable or disable lowercase letters, uppercase letters, numbers, and symbols.
To install the library, use npm:
npm install password-generator-svelte
Here is an example of using PasswordGeneratorSvelte:
<script>
import { PasswordGeneratorSvelte } from 'password-generator-svelte';
</script>
<div>
<PasswordGeneratorSvelte />
</div>
This project is licensed under the MIT License. See the LICENSE file for details.
Emilien Cosson
Any contributions are welcome! Please follow these steps to contribute:
<type>(<scope>): <subject>
<description>
<footer>
Start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
Everything inside src/lib
is part of the library, everything inside src/routes
can be used to test or preview the component.
To build the library:
npm run package
To create a production version of the showcase app:
npm run build
To preview the production build with npm run preview
.
To deploy the app, install an adapter for your target environment.
npm publish