tap-spec
Version:
Formatted TAP output like Mocha's spec reporter
53 lines (36 loc) • 1.01 kB
Markdown
# tap-spec [](https://www.npmjs.com/package/tap-spec) [](https://www.npmjs.com/package/tap-spec)
Formatted TAP output like Mocha's spec reporter

## Install
```
npm install tap-spec --save-dev
```
## Usage
### Streaming
```js
var test = require('tape');
var tapSpec = require('tap-spec');
test.createStream()
.pipe(tapSpec())
.pipe(process.stdout);
```
### CLI
**package.json**
```json
{
"name": "module-name",
"scripts": {
"test": "node ./test/tap-test.js | tap-spec"
}
}
```
Then run with `npm test`
**Terminal**
```
tape test/index.js | node_modules/.bin/tap-spec
```
**Testling**
```
npm install testling -g
testling test/index.js | node_modules/.bin/tap-spec
```