@wasm-idle/terminal
v1.0.0-next.0
Published
Svelte terminal component for wasm-idle playground bindings
Readme
@wasm-idle/terminal
Optional Svelte/xterm terminal UI for a wasm-idle playground binding. Install it only in browser applications that render the terminal:
pnpm add wasm-idle @wasm-idle/terminal svelte<script lang="ts">
import Terminal from '@wasm-idle/terminal';
import { createPlaygroundBinding } from 'wasm-idle';
const playground = createPlaygroundBinding({
rootUrl: 'https://cdn.example.com/wasm-idle'
});
</script>
<Terminal {playground} />Compiler and language-runtime payloads are not included in this package. Configure their external URLs through the injected playground binding.
