Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
/ vuminal Public archive

Create terminal applications with the power of Vue 3.

Notifications You must be signed in to change notification settings

ycmjason/vuminal

Repository files navigation

Vuminal

Create terminal applications with the power of Vue 3.

Simple example

Install vuminal and @vuminal/connector-tom

> npm install vuminal
> npm install @vuminal/connector-tom

Create index.js

const { default: Vuminal, h, ref } = require('vuminal');
const tomConnector = require('@vuminal/connector-tom');

const draw = Vuminal(tomConnector);

draw({
  setup() {
    const counter = ref(0);

    setInterval(() => {
      counter.value++;
    }, 1000);

    return () => h('row', ['current count: ', counter.value]);
  },
});

Run it!

> node index.js

How does it work?

WIP

Author

Jason Yu

About

Create terminal applications with the power of Vue 3.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published