Native dialog for mac than can be used from node
const dialog = require("../index");
const response = dialog.showSync({
title: "Product Test",
detail: "Please select one option",
buttons: ["Cancel", "Copy", "Update"]
})
);
response can be 0,1,2
depending on the order of button