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-svelteHere 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:
- Open an issue on GitHub to discuss your changes.
- Make your changes and submit a Pull Request (PR).
- Commits should follow the syntax below:
<type>(<scope>): <subject>
<description>
<footer>
- Type defines the type of commit (build, ci, docs, feat, fix, perf, refactor, style, test).
- Scope defines which part of the library/application is affected (optional).
- Subject is a brief description of the changes, using the imperative mood and without a capital letter or period.
- Description provides a more detailed explanation of the motivations behind the change (following the same rules as the Subject).
- Footer contains important changes (Breaking Changes) and references to GitHub/GitLab issues or others.
Start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openEverything 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 packageTo create a production version of the showcase app:
npm run buildTo preview the production build with npm run preview.
To deploy the app, install an adapter for your target environment.
npm publish