0.1.3 • Published 8 years ago

ovui-client v0.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago