@kfiros/btoa-polyfill

Polyfill that adds btoa and atob to projects that don't have it

Usage no npm install needed!

<script type="module">
  import kfirosBtoaPolyfill from 'https://cdn.skypack.dev/@kfiros/btoa-polyfill';
</script>

README

btoa-polyfill

npm

Polyfill that adds the base64 encoding functions btoa and atob.

Usage

  1. Install the package
npm i @kfiros/btoa-polyfill
  1. Import it on the first file that runs in your project (aka index.js)
import '@kfiros/btoa-polyfill';
// rest of the project