Gathering detailed insights and metrics for @chocpanda/tap-out
Gathering detailed insights and metrics for @chocpanda/tap-out
Gathering detailed insights and metrics for @chocpanda/tap-out
Gathering detailed insights and metrics for @chocpanda/tap-out
npm install @chocpanda/tap-out
Typescript
Module System
Node Version
NPM Version
72.7
Supply Chain
99.3
Quality
74.1
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
78,146
Last Day
2
Last Week
180
Last Month
1,607
Last Year
11,290
MIT License
1 Stars
111 Commits
1 Watchers
9 Branches
2 Contributors
Updated on Aug 27, 2020
Latest Version
1.4.3
Package Id
@chocpanda/tap-out@1.4.3
Unpacked Size
37.42 kB
Size
20.62 kB
File Count
20
NPM Version
6.14.8
Node Version
14.8.0
Cumulative downloads
Total Downloads
Last Day
-50%
2
Compared to previous day
Last Week
27.7%
180
Compared to previous week
Last Month
54.8%
1,607
Compared to previous month
Last Year
-11.9%
11,290
Compared to previous year
3
16
Node 14 (or 13 --harmony) is required in this fork
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
See our contributing doc, be sure to checkout the code of conduct
This project used conventional commits to manage versions and releases of the library therefore when making a commit please use npm commit <COMMIT_PARAMETERS>
and this will guide you through writing a conventional commit message which can be understood work with the ci pipeline
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/12 approved changesets -- score normalized to 4
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
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
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