Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionited/mask-svelte
Create your masks for Svelte easily
https://github.com/ionited/mask-svelte
core mask svelte sveltekit
Last synced: about 2 months ago
JSON representation
Create your masks for Svelte easily
- Host: GitHub
- URL: https://github.com/ionited/mask-svelte
- Owner: ionited
- Created: 2023-10-19T21:34:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-26T22:04:50.000Z (7 months ago)
- Last Synced: 2024-10-04T14:17:36.221Z (4 months ago)
- Topics: core, mask, svelte, sveltekit
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 14
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Mask-svelte
> Create your masks for Svelte easily
Svelte wrapper for [@ionited/mask](https://github.com/ionited/mask)
## Quick start
Choose your favorite option below:
### Install with NPM
```
npm i @ionited/mask-svelte
```### Get from UNPKG
[https://unpkg.com/@ionited/mask-svelte@latest/dist/index.js](https://unpkg.com/@ionited/mask-svelte@latest/dist/indext.js)
---
## Usage
To basic usage you can simply call:
```html
```
And import:
```html
import { mask } from '@ionited/mask-svelte';
```
### Register your own masks
You can create your own mask logic easily, you only need `register` a mask and use:
```ts
register(name: string, mask: any): void;
```See more [@ionited/mask](https://github.com/ionited/mask)
## License
Copyright (c) 2023 Ion. Licensed under [MIT License](LICENSE).
[https://ionited.io](https://ionited.io)