{"repo":"xpl/stacktracey","free":true,"listed":false,"github":"https://github.com/xpl/stacktracey","clone":"git clone https://github.com/xpl/stacktracey.git","description":"Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.","language":"JavaScript","stars":225,"topics":["callstack","javascript","stack","parsing","sourcemap","logging","parses-stacks","stack-trace","error-handling","exception-handling"],"license":"Unlicense","category":"analytics","readme_excerpt":"StackTracey Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers. Why - [x] Simple - [x] Works in Node and browsers, \\ nix and Windows - [x] Allows hiding library calls / ad-hoc exclusion (via // @hide marker) - [x] Provides source text for call locations - [x] Fetches sources (via get-source) - [x] Supports both asynchronous and synchronous interfaces (works even in browsers) - [x] Full sourcemap support - [x] Extracts useful information from SyntaxError instances - [x] Pretty printing What For - Error overlay UIs for easier front-end development - Better error reporting for Node projects - Advanced logging (displaying call locations) - Assertion printing How To Captures the current call stack: Parses stacks from an Error object: Stores parsed data in .items : ...where each item exposes: Accessing sources ( synchronously , use with caution in browsers): Accessing sources ( asynchronously , preferred method in browsers): ...or: ...or: The returned items contain the following additional fields (already mapped through sourcemaps): To learn about the sourceFile object, read the get-source docs. Cleaning Output Synchronously (use with caution in browsers): ...or (asynchronously): It does the following: 1. Reads sources (if available) 2. Excludes locations marked with the isThirdParty flag (library calls) 3. Excludes locations marked with a // @hide comment (user defined exclusion) 4. Merges repeated lines (via the .mergeRepeatedLines ) You can c","default_branch":null,"files":null,"tree":[],"storefront":"/r/xpl","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xpl/stacktracey/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}