{"library":"inline-worker","type":"library","category":null,"description":"inline-worker is a JavaScript utility designed to create a universal Web Worker instance directly from a function. It abstracts away the boilerplate of setting up separate worker files, allowing developers to define worker logic inline within their main script. The package intelligently determines whether to instantiate a native `Worker` in browser environments or a custom `InlineWorker` implementation for Node.js, providing a consistent API across different JavaScript runtimes. The current stable version is 1.1.0, and the package has not seen updates in over eight years (as of April 2026), indicating a low release cadence. Its key differentiator is the inline definition and universal runtime support, making it convenient for small, self-contained worker tasks without the need for separate files or complex build steps. However, its age suggests potential compatibility issues with modern JavaScript features, module systems, and a lack of ongoing maintenance.","language":"javascript","status":"abandoned","version":"1.1.0","tags":["javascript","worker"],"last_verified":"Wed May 27","install":[{"cmd":"npm install inline-worker","imports":["const InlineWorker = require('inline-worker');","new InlineWorker(workerFunction, sharedSelfObject);"]},{"cmd":"yarn add inline-worker","imports":[]},{"cmd":"pnpm add inline-worker","imports":[]}],"homepage":null,"github":"https://github.com/mohayonao/inline-worker","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/inline-worker","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/inline-worker/compatibility"}}