How to use oui - 4 common examples

To help you get started, we’ve selected a few oui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wearekuva / oui / test / index.js View on Github external
import oui from 'oui'
let control = oui.controls.ColorPicker
// import ColorPicker from 'oui/controls/colorpicker'
// console.log( oui.controls.ColorPicker )
// let gui = oui.datoui(null, _=> console.log( _ ))
// let a = { test: {r:1, g:0.5, b:0}}
// let b = {test:10}
// gui.add( a, 'test', { control } )
// gui.add( b, 'test', {options:[10, 20, 30, 40], control:oui.controls.ComboBox} )

// var f1 = gui.addFolder({label:'test', open:true})
// f1.add( a, 'test', { control } )
// var f2 = gui.addFolder({ label: 'test2' })
// f2.add( b, 'test' )

let d = document.createElement('div')
d.id='IN-HERE'
github wearekuva / oui / test / index.js View on Github external
// console.log( oui.controls.ColorPicker )
// let gui = oui.datoui(null, _=> console.log( _ ))
// let a = { test: {r:1, g:0.5, b:0}}
// let b = {test:10}
// gui.add( a, 'test', { control } )
// gui.add( b, 'test', {options:[10, 20, 30, 40], control:oui.controls.ComboBox} )

// var f1 = gui.addFolder({label:'test', open:true})
// f1.add( a, 'test', { control } )
// var f2 = gui.addFolder({ label: 'test2' })
// f2.add( b, 'test' )

let d = document.createElement('div')
d.id='IN-HERE'

let p = oui.panel({domElement:d})

window.a = {
  n:10
}
p(a)
//
// p({
//   n:5,
//   s:'sdfsd'
// })

// let foo = {a: 0.5}
// let gui = oui.datoui()
//   let fooFolder = gui.addFolder({label: 'foo'})
//   fooFolder.add(foo, 'a', {min: 0, max: 1})
github DeadPackets / HackPi / server / functions / fn.js View on Github external
interfaces.forEach((data, index) => {
				var mac = SYSINFO.interfaces[index].address
				var ifacename = SYSINFO.interfaces[index].interface
				IFCONFIG_IFACES.push(data.interface)
				if (mac !== undefined) {
					SYSINFO.interfaces[index].vendor = oui(mac).split(/\r?\n/)[0]
				}
				if (ifacename.indexOf('wlan') < 0) {} else if (ifacename.indexOf('mon') < 0) {
					CheckIfaceState(ifacename, function(status, data) {
						if (status == 'fail') {
							console.logo("Error!", data)
						} else {
							SYSINFO.interfaces[index].wirelessdata = data
						}
					})
				}

			})
		}
github roccomuso / kickthemout / lib / vendors.js View on Github external
exports.ouiUpdate = function (cb) {
  console.log(chalk.yellow('  This task could take up to 5 minutes...'))
  const spinner = new Spinner('  Updating MAC Vendors DB.. %s')
  spinner.setSpinnerString('|/-\\')
  spinner.start()

  oui.update({}, function (err) {
    spinner.stop()
    if (err) return cb(err)
    cb(null, chalk.green('\n \u2713 MAC Vendors DB updated!'))
  })
}

oui

CLI to look up MAC addresses for their vendor in the IEEE OUI database

BSD-2-Clause
Latest version published 8 months ago

Package Health Score

58 / 100
Full package analysis

Similar packages