0.1.3 • Published 8 years ago
ovui-client v0.1.3
OVUI Client
Client library for OVUI
Use
const OVUIClient = require('ovui-client')
const ovui = OVUIClient(/* optional port - defaults to 14242 */)
(async () => {
const forceSide = await ovui.list({
desc: 'choose a force side',
data: [
{ key: 'jedi', text: 'light side' },
{ key: 'sith', text: 'dark side' }
]
})
// user action in OVUI to select an item, and then...
console.log(`young padawan chose ${forceSide}`)
})()
Install
npm i ovui-client