Svelte Action
Write less, Do more
Svelte Action is a collection of utility functions, which help you build powerful app.
The key features are:
- Type Strong ๐ช: Written in TypeScript, with full TS docs.
- Fast to code ๐: Increase the speed to develop features by about 200% to 300%.
- Fewer bugs ๐: Reduce about 40% of human (developer) induced errors.
- SSR Friendly ๐บ: Works perfectly with server-side.
- Easy ๐ซ: Designed to be easy to use and learn. Less time reading docs.
- Interactive demos ๐ : Documentation of functions also come with interactive demos!.
- Feature Rich ๐: 100+ functions for you to choose from.
- Fully ๐ณ shakeable: Only take what you want.
- โ๏ธ Flexible: Fully customizable, configurable event filters and targets.
Installation
๐งช Example
<script>
import {jwt} from "svelteintegrations/jwt"
const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
const { header, payload } = jwt(token)
</script>
<h1>Header:</h1>
<h2>{JSON.stringify(header)}</h2>
<hr/>
<h1>Payload:</h1>
<h2>{JSON.stringify(payload)}</h2>
๐ Thanks
This project is heavily inspired by the following awesome projects.
๐ License
MIT License ยฉ 2022-PRESENT Mohamed Nesredin
Last update: 2022-10-21
Authors: Mohamed-Kaizen