Gathering detailed insights and metrics for tap-out
Gathering detailed insights and metrics for tap-out
Gathering detailed insights and metrics for tap-out
Gathering detailed insights and metrics for tap-out
npm install tap-out
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
23 Stars
64 Commits
28 Forks
3 Watchers
3 Branches
9 Contributors
Updated on Oct 31, 2021
Latest Version
3.0.0
Package Id
tap-out@3.0.0
Size
7.68 kB
NPM Version
6.0.0
Node Version
8.9.1
Published on
Jun 05, 2018
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
1
A different tap parser
npm install tap-out --save
CLI
$ something-that-produces-tap | tap-out
{
tests: [
{ name: 'is true', number: 1, raw: '# is true', type: 'test' }
],
asserts: [
{ name: 'true value', number: 1, ok: true, raw: 'ok 1 true value', test: 1, type: 'assert' },
{ name: 'true value', number: 2, ok: true, raw: 'ok 2 true value', test: 1, type: 'assert' }
],
versions: [],
results: [],
comments: [],
plans: [{ type: 'plan', raw: '1..2', from: 1, to: 2, skip: false }],
pass: [
{ name: 'true value', number: 1, ok: true, raw: 'ok 1 true value', test: 1, type: 'assert' },
{ name: 'true value', number: 2, ok: true, raw: 'ok 2 true value', test: 1, type: 'assert' }
],
fail: [],
errors: []
}
API
1var tapOut = require('tap-out'); 2 3var t = tapOut(function (output) { 4 5 console.log(output); 6}); 7 8t.on('assert', function (assert) { 9 10 // Do something 11}); 12 13process.stdin.pipe(t);
Returns a stream that emits events with various TAP data. Takes a callback which is called when all parsing is done.
All output after all TAP data is parsed.
Example output
1{ 2 tests: [ 3 { name: 'is true', number: 1, raw: '# is true', type: 'test' } 4 ], 5 asserts: [ 6 { name: 'true value', number: 1, ok: true, raw: 'ok 1 true value', test: 1, type: 'assert' }, 7 { name: 'true value', number: 2, ok: true, raw: 'ok 2 true value', test: 1, type: 'assert' } 8 ], 9 results: [], 10 versions: [], 11 comments: [], 12 fail: [], 13 pass: [ 14 { name: 'true value', number: 1, ok: true, raw: 'ok 1 true value', test: 1, type: 'assert' }, 15 { name: 'true value', number: 2, ok: true, raw: 'ok 2 true value', test: 1, type: 'assert' } 16 ], 17}
Parsed test object with details.
type
- value will always be test
name
- name of the testraw
- the raw output before it was parsednumber
- the number of the test1{ 2 type: 'test', 3 name: 'is true', 4 raw: '# is true', 5 number: 1 6}
Parsed assert object details.
type
- this will always be assert
name
- the name of the assertionraw
- the raw output before it was parsednumber
- the number of the assertionok
- whether the assertion passed or failedtest
- the number of the test this assertion belongs to1{ 2 name: 'true value', 3 number: 1, 4 ok: true, 5 raw: 'ok 1 true value', 6 test: 1, 7 type: 'assert' 8}
Parsed version data.
type
- this will always be version
raw
- the raw output before it was parsed1{ 2 raw: 'TAP version 13', 3 type: 'version' 4}
Parsed test result data for tests, pass, fail.
type
- this will always be result
name
- the name of the resultraw
- the raw output before it was parsedcount
- the number of tests related to this resultTests
1{ 2 count: '15', 3 name: 'tests', 4 raw: '# tests 15', 5 type: 'result' 6}
Pass
1{ 2 count: '13', 3 name: 'pass', 4 raw: '# pass 13', 5 type: 'result' 6}
Fail
1{ 2 count: '2', 3 name: 'fail', 4 raw: '# fail 2', 5 type: 'result' 6}
Parsed assertion that has passed with details. The assertion formate is the same as the assert
event.
Failed assertion that has passed with details. The assertion formate is the same as the assert
event.
Generic output like console.log()
in your tests.
type
- this will always be comment
raw
- the raw output before it was parsedtest
- the number of the test this comment belongs to1{ 2 type: 'comment', 3 raw: 'this is a console log', 4 test: 1 5}
git clone git@github.com:scottcorgan/tap-out.git && cd tap-out
npm install
npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
Found 7/21 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More