How to use the oui.update function in oui

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 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 4 months ago

Package Health Score

62 / 100
Full package analysis

Similar packages