Base64 a PNG NodeJS
const fs = require("fs");
const buffer = Buffer.from(base64, "base64");
fs.writeFileSync("new-path.jpg", buffer);
MR. D
const fs = require("fs");
const buffer = Buffer.from(base64, "base64");
fs.writeFileSync("new-path.jpg", buffer);