JSPM

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

Optimized stack traces for Javascript

Package Exports

  • sb-callsite

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 (sb-callsite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SB-CallSite

SB-Callsite is a node/javascript module to manipulate stack traces. You can use it to find the filename of calee and for other purposes

API

type Trace = shape(
  line: Number,
  col: Number,
  function: String,
  file: String
)
export function capture(): Array<Trace>
export function fromStack(string): Array<Trace>
// ^ Example Usage: callsite.fromStack(new Error().stack)

License

This project is licensed under the terms of MIT License. See the LICENSE file for more info.