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 callee and such. It uses err.stack to achieve this.
sb-callsite is feature-complete and considered stable. No further changes will be made to the source.
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.