svelte-ink

0.0.2ย โ€ขย Publicย โ€ขย Published

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

Package Sidebar

Install

npm i svelte-ink

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

5.42 kB

Total Files

5

Last publish

Collaborators

  • symind