# tap_bail

> Stream that receives TAP and exits on first failing test.

Latest version **1.0.1** (published 2017-02-09) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install tap_bail
pnpm add tap_bail
yarn add tap_bail
bun add tap_bail
```

Provides the command `tap_bail`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-02-09 |
| First published | 2016-10-23 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Johnny Hauser |
| Maintainers | m59 |
| Keywords | tap, test, fail, bail, not, ok, exit, stop, stream, pipe |

## Links

- npm: https://www.npmjs.com/package/tap_bail
- Repository: https://github.com/m59peacemaker/node-tap-bail
- Homepage: https://github.com/m59peacemaker/node-tap-bail#readme
- Issues: https://github.com/m59peacemaker/node-tap-bail/issues
- npm.io page: https://npm.io/package/tap_bail

## Dependencies (4)

- [throo](https://npm.io/package/throo.md) ^1.0.0
- [duplexer](https://npm.io/package/duplexer.md) ^0.1.1
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [tap_parser](https://npm.io/package/tap_parser.md) ^1.0.2

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-02-09
- 1.0.0 — 2016-10-23

## README

# tap_bail

Stream that receives TAP and exits on first failing test.

## install

```sh
npm install tap_bail
```

## example

```sh
# run tests, format TAP with tap-spec, exit on first failing test
npm test | tap_bail | tap-spec
```

```js
const tapBail = require('tap_bail')

const stream = tapBail()
  .on('error', () => {}) // failing test
  .on('end', () => {}) // all tests passed
```

---
_Source: https://npm.io/package/tap_bail · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
