UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

2 lines (1 loc) 307 B
var i=Object.defineProperty;var a=(t,e)=>i(t,"name",{value:e,configurable:!0});function y(t,e,o="image/png"){const r=atob(t),b=r.length,l=new Uint8Array(b);for(let n=0;n<b;n++)l[n]=r.charCodeAt(n);const c=new Blob([l],{type:o});return new File([c],e,{type:o})}a(y,"base64ToFile");export{y as base64ToFile};