Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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!'))
})
}