{"name":"@tapjs/worker","version":"4.0.1","description":"a built-in tap extension for t.worker()","tshy":{"main":true,"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"type":"module","main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"scripts":{"prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"author":{"name":"Isaac Z. Schlueter"},"license":"BlueOak-1.0.0","peerDependencies":{"@tapjs/core":"4.0.1"},"tap":{"typecheck":false},"keywords":["tapjs plugin"],"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"homepage":"https://github.com/tapjs/tapjs/src/worker#readme","repository":{"type":"git","url":"git+https://github.com/tapjs/tapjs.git"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"_id":"@tapjs/worker@4.0.1","gitHead":"532287f65d814c7cb7872bf84b3d86b17d900e43","_nodeVersion":"22.10.0","_npmVersion":"11.0.0","dist":{"integrity":"sha512-/vt26VFrrsKRqRzqFzdXtZkVnT3JT+xImRSgIwFXZ/0Gr8x88tmstPbDfPujSI1zXdaW1OLu2iib8UY3Uls9Cw==","shasum":"ef0ae1323ad1e0567c159e17376aad5b954175a7","tarball":"http://registry-npm.ywwl.com/@tapjs/worker/download/@tapjs/worker-4.0.1.tgz","fileCount":13,"unpackedSize":17652,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJ6Wr+OHN4NOca025/XyBM+7FN8wOfO+QxfQ+25GMdggIhANKF3s1ULg1FXIYxDjqBXLlhkEIBtIMkHd1mNILYXZzN"}],"size":4283,"noattachment":false,"key":"/@tapjs/worker/-/@tapjs/worker-4.0.1.tgz"},"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/worker_4.0.1_1740006947585_0.04919599523354945"},"_hasShrinkwrap":false,"readme":"# `@tapjs/worker`\n\nA default tap plugin providing `t.worker()`.\n\n## USAGE\n\nThis plugin is installed with tap by default. If you had\npreviously removed it, you can `tap plugin add @tapjs/worker` to\nbring it back.\n\n### Interface `WorkerOpts`\n\nOptions for `t.worker()`\n\nAll of the normal Base and Extra options are also allowed.\n\n- `workerData` - Any data passed to the Worker thread.\n  Shows up in the worker thread as `t.workerData` on the root\n  `TAP` test.\n- `env` - Environment variables provided to the worker thread\n- `eval` - if set to `true`, then the `filename` will be treated\n  as inline JavaScript code rather than a filename to run.\n\n### `t.worker(filename, [options], [name]): PromiseWithWorker`\n\nArguments:\n\n- `filename` `string` - The file to execute in the thread, or if\n  `{ eval: true }` is in the options, a string of JavaScript code\n  to run.\n- `options` (optional) `WorkerOpts` object\n- `name` (optional) `string` - name of the subtest\n\nStarts a [Node.js\nWorker](https://nodejs.org/api/worker_threads.html#class-worker)\nthread when the test starts, parsing its standard output as a TAP\nstream.\n\nReturns a Promise that resolves when the test is complete. The\n`subtest` member on the Promise is a\n[`Worker`](https://tapjs.github.io/tapjs/classes/_tapjs_core.worker.Worker.html)\ninstance.\n","publish_time":1740006947770,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_cnpm_publish_time":1740006947770,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}