You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@tapjs/worker

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/worker

a built-in tap extension for t.worker()

Source
npmnpm
Version
4.3.0
Version published
Weekly downloads
183K
13.23%
Maintainers
2
Weekly downloads
 
Created
Source

@tapjs/worker

A default tap plugin providing t.worker().

USAGE

This plugin is installed with tap by default. If you had previously removed it, you can tap plugin add @tapjs/worker to bring it back.

Interface WorkerOpts

Options for t.worker()

All of the normal Base and Extra options are also allowed.

  • workerData - Any data passed to the Worker thread. Shows up in the worker thread as t.workerData on the root TAP test.
  • env - Environment variables provided to the worker thread
  • eval - if set to true, then the filename will be treated as inline JavaScript code rather than a filename to run.

t.worker(filename, [options], [name]): PromiseWithWorker

Arguments:

  • filename string - The file to execute in the thread, or if { eval: true } is in the options, a string of JavaScript code to run.
  • options (optional) WorkerOpts object
  • name (optional) string - name of the subtest

Starts a Node.js Worker thread when the test starts, parsing its standard output as a TAP stream.

Returns a Promise that resolves when the test is complete. The subtest member on the Promise is a Worker instance.

Keywords

tapjs plugin

FAQs

Package last updated on 01 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts