save base64 string to webp format nodejs code example
Example: nodejs fs writefile base64url
const fileContents = new Buffer(attachmentResponse.data.data, 'base64')
fs.writeFile(part.filename, fileContents, (err) => {
if (err) return console.error(err)
console.log('file saved to ', part.filename)
})