json.map is not a function - Getting this Error while using Node-fetch
GET Method
JSON Fetch result
{"status":200,"email":"[email protected]","domain":"example.com","mx":false,"disposable":false,"alias":false,"did_you_mean":null,"remaining_requests":99}
I want to Print this on Node CLI Table
const printContent = json => {
console.log()
const group = json.map(g => [
g.status,
g.email
])
const table = new Table({
head: ["Name", "Email"],
colWidths: [20, 20]
})
table.push(...group)
console.log(table.toString())
}
https://www.validator.pizza/email/[email protected]