Skip to main content

Built and signed on GitHub Actions

Svelte/SvelteKit input debouncer

This package works with Node.js, Bun
This package works with Node.js
This package works with Bun
JSR Score
100%
Published
5 months ago (0.1.3)
function debounce
debounce(
node: any,
callback: <T = any>(value: T) => void,
options?: { delta: number; },
): { destroy: () => void; }

use:debounce

Easy debouncing with Svelte use: directive.

<input use:debounce={(v) => console.log('debounced value: ', v)}/>

Parameters

node: any
callback: <T = any>(value: T) => void
optional
options: { delta: number; }

Return Type

{ destroy: () => void; }

Add Package

npx jsr add @xlsoftware/svelte-debounce

Import symbol

import { debounce } from "@xlsoftware/svelte-debounce";

Add Package

yarn dlx jsr add @xlsoftware/svelte-debounce

Import symbol

import { debounce } from "@xlsoftware/svelte-debounce";

Add Package

pnpm dlx jsr add @xlsoftware/svelte-debounce

Import symbol

import { debounce } from "@xlsoftware/svelte-debounce";

Add Package

bunx jsr add @xlsoftware/svelte-debounce

Import symbol

import { debounce } from "@xlsoftware/svelte-debounce";