github.com/outbrain/consul@v1.4.5/ui-v2/app/utils/atob.js (about) 1 import base64js from 'npm:base64-js'; 2 export default function(str, encoding = 'utf-8') { 3 // decode 4 const bytes = base64js.toByteArray(str); 5 return new TextDecoder(encoding).decode(bytes); 6 }