@tapjs/stdin
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @tapjs/stdin

Weekly Downloads

68,520

Version

2.0.1

License

BlueOak-1.0.0

Unpacked Size

11.6 kB

Total Files

13

Last publish

Collaborators

  • ljharb
  • isaacs