1. @tapjs/stdin
a built-in tap extension for t.stdin()
@tapjs/stdin
Package: @tapjs/stdin
Created by: tapjs
Last modified: Tue, 26 Mar 2024 23:25:32 GMT
Version: 1.1.20
License: BlueOak-1.0.0
Downloads: 120,626
Repository: https://github.com/tapjs/tapjs

Install

npm install @tapjs/stdin
yarn add @tapjs/stdin

@tapjs/stdin

A default tap plugin providing t.stdin().

USAGE

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

Interface StdinOpts

Options for t.stdin()

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

  • tapStream - a
    Minipass<Buffer|string>
    stream or Node.js ReadableStream. If provided, this will be
    the source of TAP data. Defaults to process.stdin.

t.stdin([name], [options]): PromiseWithSpawn

Arguments:

  • name (optional) string - Name for the subtest, defaults to
    /dev/stdin
  • options (optional) StdinOpts object

Processes standard input as a TAP stream.

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code