📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

svelte-sonic

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-sonic

simple audio player for svelte, based on [wavesurfer.js](https://github.com/katspaugh/wavesurfer.js). It's Svelte 5 runes for reactivity.

0.0.5
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

svelteSonic

simple audio player for svelte, based on wavesurfer.js. It's Svelte 5 runes for reactivity.

Installation

pnpm i svelte-sonic

Usage

<script lang="ts">
	import { AudioPlayer } from 'svelte-sonic';

	let togglePlayPause = $state(() => {});
	let isPlaying = $state(false);
	let progress = $state(0);
</script>

<AudioPlayer
	src="/audio.mp3"
	barWidth={3}
	exclusive={true}
	bind:togglePlayPause
	bind:isPlaying
	bind:progress
/>

FAQs

Package last updated on 28 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts