Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

trace-and-clarify-if-possible

nknapp9.3kMIT1.0.5

Use trace and clarify if supported by the current node version

trace, clarify

readme

trace-and-clarify-if-possible

NPM version Travis Build Status Coverage Status

Use trace and clarify if supported by the current node version

trace and clarify can help greatly to analyze stack-traces

  • trace shows the part of the stack that would otherwise disappear due to asynchronous callbacks
  • clarify removes uninteresting parts of the stack

Sadly, trace can is only compatible with NodeJS version >=4. It makes sense to include trace in your tests all the time (not in production code though). However, when you run the test in Travis CI with multiple node versions <4, the tests will break.

This package include trace and clarify only for supported node versions.

Installation

npm install trace-and-clarify-if-possible

Usage

Put the following line a module that is loaded at the start of your program or testcase-spec (remember, do not use in production).

require('trace-and-clarify-if-possible')

Or, you can put --require trace-and-clarify-if-possible into yourtest/mocha.opts` to activate it for all tests

License

trace-and-clarify-if-possible is published under the MIT-license.

See LICENSE.md for details.

Release-Notes

For release notes, see CHANGELOG.md

Contributing guidelines

See CONTRIBUTING.md.

changelog

Release notes for trace-and-clarify-if-possible

Version 1.0.5 (Sat, 16 Feb 2019 20:42:16 GMT)

  • 751a68e fix: change "nyc" into a devDependency - Nils Knappmeier

Version 1.0.4 (Fri, 15 Feb 2019 21:39:56 GMT)

  • 8cbf810 chore: add recent node versions to .travis-ci - Nils Knappmeier
  • 06467f6 chore: bump dependency versions, use nyc instead of istanbul - Nils Knappmeier

Version 1.0.3 (Tue, 09 Jan 2018 21:08:57 GMT)

  • 1a6b410 Use "var" instead of const, in order to support node 0.12 - Nils Knappmeier

Version 1.0.2 (Tue, 09 Jan 2018 20:36:48 GMT)

  • 88dc4aa Bump dependency versions, support node 8+ (disabled node 6-) - Nils Knappmeier
  • 7997a00 fix: Prevent broken "yarn install" - Nils Knappmeier
  • 565fb1c Add node 9 and yarn to travis-ci - Nils Knappmeier

Important: trace and clarify will be disabled for node version before 8 in this release.

Version 1.0.1 (Thu, 24 Aug 2017 20:58:17 GMT)

  • 608f7b4 Disable "trace@2" for node 8 - Nils Knappmeier
  • 8639e6c Chore setup - Nils Knappmeier
  • 8ed02b6 chore(package): update dependencies - greenkeeper[bot]

Version 1.0.0 (Mon, 19 Dec 2016 21:49:01 GMT)

  • 27ee212 Initial implementation - Nils Knappmeier
  • ef16de3 Initial check-in - Nils Knappmeier