Create terminal applications with the power of Vue 3.
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
WIP
Jason Yu