Nostradamus Prophecy Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

twizzlers

0.0.3 • Public • Published

Twizzlers

Easy and reliable isomorphic multithreading for JavaScript

Automatically parallelizes your code whether run in the browser or node.

IN PROGRESS

Not yet usable. More of a dream than a library. I'm creating this because I tried packages that claim to do this and they all fell far short of what they promised. This is probably because the authors didn't eat twizzlers.

API

// some module
import doStuff from "somewhere";
 
const foo = (bar, baz) => doStuff(foo, bar);
 
// some other place in your codebase
import { twizzlifyThatShit } from "twizzlers";
import foo from "wherever/foo/is";
 
const twizzledFunc = twizzlifyThatShit(foo);
 
// BOOM! This just ran on every CPU core
// Thread pool pattern will also be available
const whoaThatWasFast = twizzledFunc(123, {});
 
// Why the fuck is vs code formatting this snippet? Anyone know how to turn that off?

install

npm i twizzlers

Downloadsweekly downloads

1

version

0.0.3

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability