trace-and-clarify-if-possible
Use `trace` and `clarify` if supported by the current node version
Last updated a year ago by knappi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install trace-and-clarify-if-possible 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.5                                ...           latest (a year ago)

6 Versions

  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 2
Last Month 17
Dependencies (2)
Dev Dependencies (11)

Copyright 2014 - 2017 © taobao.org |