I was looking for an easy way to do Base64 encoding/decoding in Nuxt.js while using SSR (server-side rendering). It's not really a big deal, but I didn't find a quick solution. So here is a tiny plugin to help with that. Just drop it into your /plugins/
directory and reference it in the nuxt.config.ts
:
plugins: [
{ src: '~/plugins/base64.ts' },
]