ํ๋ก์ ํธ
GitHub์์ ๋ณด๊ธฐ 
Workerize
developit/workerize
developit/workerize has 4,365 GitHub stars and 86 forks. GitHot measured -1 stars in 24 hours, -3 in 7 days, and -4 in 15 days. Last checked 2026-11-25 07:53 UTC. Last push 2021-03-04.
์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- -1
- in 7 days
- -3
- in 15 days
- -4
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
์๊ฐ
๐๏ธ Web Worker์์ ๋ชจ๋์ ์คํํฉ๋๋ค.
์น ๋ฐ ์ฑREADME.md
Original๐ Using Webpack? You want workerize-loader โก๏ธ

Workerize

Moves a module into a Web Worker, automatically reflecting exported functions as asynchronous proxies.
- Bundles a tiny, purpose-built RPC implementation into your app
- If exported module methods are already async, signature is unchanged
- Supports synchronous and asynchronous worker functions
- Works beautifully with async/await
- Just 800 bytes of gzipped ES3
Install
npm install --save workerize
Usage
Pass either a function or a string containing code.
worker.js:
let worker = workerize(`
export function add(a, b) {
// block for half a second to demonstrate asynchronicity
let start = Date.now();
while (Date.now()-start < 500);
return a + b;
}
`);
(async () => {
console.log('3 + 9 = ', await worker.add(3, 9));
console.log('1 + 2 = ', await worker.add(1, 2));
})();
License
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ