svelte-ink
v0.0.2
Published
🌈 Svelte for interactive command-line apps
Downloads
4
Maintainers
Readme
Svelte Ink
Svelte for CLIs. Build and test your CLI output using components.
Install
npm install svelte-ink
Usage
<script>
import { onDestroy } from 'svelte'
let counter = 0
const timer = setInterval(() => {
counter += 1
}, 100)
onDestroy(() => clearInterval(timer))
</script>
<ink-text color="green">{counter} tests passed</ink-text>