Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/babel-plugin-worker

Package Overview
Dependencies
Maintainers
32
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/babel-plugin-worker

--- category: packages experimental: true ---

  • 10.0.1-rc.0
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-69.23%
Maintainers
32
Weekly downloads
 
Created
Source

category: packages experimental: true

babel-plugin-worker

Installation

yarn add @instructure/babel-plugin-worker

Usage

// index.js
import MyWorker from 'MyWorker?worker'

/*
import MyWorker from 'MyWorker?worker&target=chrome58'
see https://esbuild.github.io/api/#target
*/

const worker = new MyWorker({
    /* see https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker#options */
})

worker.postMessage('hello from the main thread')
// MyWorker.js

self.addEventListener('message', (event) => {
    console.log('hello from the worker thread', event.data)
})

FAQs

Package last updated on 02 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc