const pify = require("pify")
const google = require("google")
const search = pify(google)
const result = await search("es6")
for (const link of result.links) {
const title = link.title
const href = link.href
if (href !== null) {
console.log(`${title} - ${href}`)
}
}