svelte-u / browser

A collection of browser utilities for Svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Svelte Utility

Write less, Do more


The key features are:

  • Type Strong πŸ’ͺ: Written in TypeScript, with 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.

Installation

pnpm add -D @sveu/browser

πŸ§ͺ Example

<script>
 import {permission} from "@sveu/browser"

 const { state, supported } = permission("geolocation", {controls: true})
</script>

<h1>Is supported is: {$supported}</h1>

<h1>state is: {$state}</h1>

πŸ™ Thanks

This project is heavily inspired by the following awesome projects.

πŸ“œ License

MIT License Β© 2022-PRESENT Mohamed Nesredin

About

A collection of browser utilities for Svelte

License:MIT License


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%