Socket
Socket
Sign inDemoInstall

tipsi-tap-diff

Package Overview
Dependencies
34
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tipsi-tap-diff

The most human-friendly TAP reporter


Version published
Weekly downloads
1.1K
increased by1.41%
Maintainers
1
Install size
3.13 MB
Created
Weekly downloads
 

Readme

Source

tap-diff

npm version

The most human-friendly TAP reporter.

Screenshot

Screenshot

How to use

You can use tap-diff in the same way as other TAP reporters.

npm install -g tap-diff
tape ./*.test.js | tap-diff

tap-diff uses chalk for adding color, which automatically detects color terminals. If you're piping the output and want to force color:

FORCE_COLOR=t tape ./*.test.js | tap-diff

Or use with createStream():

'use strict'

const test = require('tape')
const tapDiff = require('tap-diff')

test.createStream()
  .pipe(tapDiff())
  .pipe(process.stdout)

test('timing test', (t) => {
  t.plan(2)
  t.equal(typeof Date.now, 'function')
  var start = Date.now()

  setTimeout(() => {
    t.equal(Date.now() - start, 100)
  }, 100)
})

License

MIT

Keywords

FAQs

Last updated on 02 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc