Skip to content
This repository was 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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jason Yu
Sep 25, 2020
23ae977 · Sep 25, 2020

History

17 Commits
Sep 25, 2020
Apr 20, 2020
Apr 20, 2020
Sep 25, 2020
Apr 20, 2020
Apr 20, 2020
Apr 20, 2020
Sep 25, 2020
Sep 25, 2020
Apr 20, 2020
Apr 22, 2020
Apr 20, 2020

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