JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12903759
  • Score
    100M100P100Q224142F

JS Object representation of a stack frame

Package Exports

  • stackframe

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stackframe) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stackframe - JS Object representation of a stack frame.

Build Status Coverage Status Code Climate

Underlies functionality of other modules within stacktrace.js.

Usage

// Create StackFrame and set properties
var stackFrame = new StackFrame('funName', ['args'], 'http://localhost:3000/file.js', 1, 3288);

stackFrame.functionName                // => "funName"
stackFrame.setFunctionName('newName')
stackFrame.getFunctionName()           // => "newName"

stackFrame.args        // => ["args"]
stackFrame.setArgs([])
stackFrame.getArgs()   // => []

stackFrame.fileName                                      // => 'http://localhost:3000/file.min.js'
stackFrame.setFileName('http://localhost:3000/file.js')  
stackFrame.getFileName()                                 // => 'http://localhost:3000/file.js'

stackFrame.lineNumber          // => 1
stackFrame.setLineNumber(325)
stackFrame.getLineNumber()     // => 325

stackFrame.columnNumber          // => 3288
stackFrame.setColumnNumber(20)
stackFrame.getColumnNumber()     // => 20

Installation

npm install stackframe
bower install stackframe
component install stackframe
https://raw.githubusercontent.com/stacktracejs/stackframe/master/stackframe.js