index.js
function Stack(trace, options) {
  if (!(this instanceof Stack)) return new Stack(trace, options);

  if ('object' === typeof trace && !trace.length) {
    options = trace;
    trace = null;
  }

  options = options || {};
  options.guess = 'guess' in options ? options.guess : true;

  if (!trace) {
    var imp = new stacktrace.implementation()
      , err = options.error || options.err || options.e
      , traced;

    traced = imp.run(err);
    trace = options.guess ? imp.guessAnonymousFunctions(traced) : traced;
  }

  this.traces = this.parse(trace);
}
function Stack(trace, options) {
  if (!(this instanceof Stack)) return new Stack(trace, options);

  if ('object' === typeof trace && !trace.length) {
    options = trace;
    trace = null;
  }

  options = options || {};
  options.guess = 'guess' in options ? options.guess : true;

  if (!trace) {
    var imp = new stacktrace.implementation()
      , err = options.error || options.err || options.e
      , traced;

    traced = imp.run(err);
    trace = options.guess ? imp.guessAnonymousFunctions(traced) : traced;
  }

  this.traces = this.parse(trace);
}
function Stack ( trace , options ) { if ( ! ( this instanceof Stack ) ) return new Stack ( trace , options ) ; if ( 'object' === typeof trace && ! trace . length ) { options = trace ; trace = null ; } options = options || { } ; options . guess = 'guess' in options ? options . guess : true ; if ( ! trace ) { var imp = new stacktrace . implementation ( ) , err = options . error || options . err || options . e , traced ; traced = imp . run ( err ) ; trace = options . guess ? imp . guessAnonymousFunctions ( traced ) : traced ; } this . traces = this . parse ( trace ) ; }
Representation of a stack trace.

Options:

- **guess**: Guess the names of anonymous functions.

@constructor
@param {Array} trace Array of traces.
@param {Object} err
@api private
Representation of a stack trace .