{"_id":"@tapjs/worker@4.3.13","tap":{"typecheck":false},"bugs":{"url":"https://github.com/tapjs/tapjs/issues"},"dist":{"shasum":"d7caa93e8f35acabb48b22ba431794a569b7672d","tarball":"http://registry-npm.ywwl.com/@tapjs/worker/download/@tapjs/worker-4.3.13.tgz","fileCount":13,"integrity":"sha512-i7+rL1e2h/OER1sct9dfJZ6c4bRdUjfFGK5e/FjTEMMWxvsoX0r1a+1VZGkvbpOP46E8WU/d5IpnzNc7iIoXiA==","signatures":[{"sig":"MEUCIQD/i+MjVrnxXdJA3DLZlIrHvLMT0205UV5EwGBe5/ZC/gIgRG5us7MBBoOaKcPzvTtcEd3/8/NNQJKDQQwulCYnScU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDzr/LzoG+S2SaGyFWwx1FDOJTf2qZP6r60iurbQzIo6wIhAMXUFxFV5fIgiGlVjpQ7CWSB9adPk9kjP8kRhdCEHN/Z"}],"unpackedSize":17715,"size":4306,"noattachment":false,"key":"/@tapjs/worker/-/@tapjs/worker-4.3.13.tgz"},"main":"./dist/commonjs/index.js","name":"@tapjs/worker","tshy":{"main":true,"exports":{".":"./src/index.ts","./package.json":"./package.json"},"selfLink":false},"type":"module","types":"./dist/commonjs/index.d.ts","author":{"name":"Isaac Z. Schlueter"},"module":"./dist/esm/index.js","engines":{"node":"20 || >=22"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"6874ffcc3e671f64b5dbabdd25b26904d3e2ed84","license":"BlueOak-1.0.0","scripts":{"snap":"tap","test":"tap","format":"prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache","prepare":"tshy","presnap":"npm run prepare","pretest":"npm run prepare","typedoc":"typedoc --tsconfig tsconfig/esm.json ./src/*.ts"},"version":"4.3.13","_npmUser":{"name":"isaacs","email":"i@izs.me"},"homepage":"https://github.com/tapjs/tapjs/tree/main/src/worker#readme","keywords":["tapjs plugin"],"repository":{"url":"git+ssh://git@github.com/tapjs/tapjs.git","path":"src/worker","type":"git"},"_npmVersion":"12.2.0","description":"a built-in tap extension for t.worker()","directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"isaacs","email":"i@izs.me"}],"_nodeVersion":"26.5.0","_hasShrinkwrap":false,"peerDependencies":{"@tapjs/core":"4.6.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/worker_4.3.13_1793744155945_0.6969504046384323"},"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":1793744156051,"_cnpm_publish_time":1793744156051,"dist-tags":{"latest":"4.3.13","pre":"1.0.0"}}