const doesnotexists = require("doesnotexist");
const fs = require("fs");
doesnotexists("person")
.then(x => fs.writeFileSync("./person.png", x))
.catch(console.error);
doesnotexists("horse")
.then(x => fs.writeFileSync("./horse.png", x))
.catch(console.error);
doesnotexists("cat")
.then(x => fs.writeFileSync("./cat.png", x))
.catch(console.error);
doesnotexists("artwork")
.then(x => fs.writeFileSync("./art.png", x))
.catch(console.error);