worker-portal

Expose an API to a Web Worker

Usage no npm install needed!

<script type="module">
  import workerPortal from 'https://cdn.skypack.dev/worker-portal';
</script>

README

Portal

Portal is an tool to expose an API between Javascript contexts. For example, WebWorkers and the DOM thread can expose methods to each other.

Credit

Created by Timothy Farrell