New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webproletarian

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webproletarian

Simple WebWorkers framework for inline functions

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

WebProletarian

Simple JavaScript framework to execute inline function into a WebWorker easily.



Installation

From Source Code

Clone or download zipped source code into node_modules project folder.

cd <project>/node_modules 
git clone https://github.com/lucasmenendez/webproletarian.git

Using WebProletarian

Import dist version into the index.html file:

<script src="/node_modules/webproletarian/dist/webproletarian.js"></script>

Or import with ES6 import:

import { WebProletarian } from 'webproletarian'

Example

import { WebProletarian } from 'webproletarian'

const labourUnion = new WebProletarian(function() {
	proletarian.read("event2", console.log);

	setInterval(() => {
		proletarian.fire("event1", "thread: ping");
	}, 1000);
});

labourUnion.read("event1", data => {
	console.log(data);
	labourUnion.fire("event2", "main: pong");
});

Keywords

FAQs

Package last updated on 30 Aug 2018

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