0.0.2 • Published 1 year ago

svelte-ink v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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>

LICENSE

MIT