You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,7 +27,7 @@ Live demo is at https://stacklynjs.github.io/demo.
23
27
First and foremost, `npm install stacklyn`.
24
28
*(and/or use one of the direct import methods listed below)*
25
29
26
-
Here's some example usage code so you don't feel lost while I finish writing the docs and demos:
30
+
Here's some example usage code so you don't feel lost while I finish writing the docs:
27
31
28
32
```js
29
33
importStacklynfrom"stacklyn";
@@ -34,28 +38,25 @@ try {
34
38
// array of objects
35
39
constparsed=Stacklyn.parse(error);
36
40
37
-
// still an array of objects
41
+
// still an array of objects, but with source map info
38
42
constmapped=Stacklyn.map(parsed);
39
43
40
44
mapped.forEach(frame=>console.log(frame.raw)); // log the sourcemapped stack frames
41
-
42
-
// i would've done a better guide but i've been working on this since may 26
43
-
// and since i wanted to release it for so long this will do for now.
44
-
// - doctoon, sorry for inconvinence, docs are coming soon i promise
45
45
}
46
46
```
47
47
48
48
### What we offer:
49
-
- Stacktrace Parsing (for more info, see [`parse()`](https://stacklynjs.github.io/docs?p=api/parse))
50
-
- Turn a parsed stack back into a string (for more info, see [`stringify()`](https://stacklynjs.github.io/docs?p=api/stringify))
51
-
- Stacktrace Converting (for more info, see [`convert()`](https://stacklynjs.github.io/docs?p=api/convert))
52
-
- Support for V8 `CallSite` objects (for more info, see [`parseCS()`](https://stacklynjs.github.io/docs?p=api/parseCS) and [`getCallSites()`](https://stacklynjs.github.io/docs?p=api/getCallSites))
53
-
- Source Maps (for more info, see [`map()`](https://stacklynjs.github.io/docs?p=api/map))
54
-
- Enriching frames with context info (for more info, see [`enrich()`](https://stacklynjs.github.io/docs?p=api/enrich))
55
-
- Make error properties enumerable (for more info, see [`serializeError()`](https://stacklynjs.github.io/docs?p=api/serializeError))
56
-
- And best of all, supports most stack trace formats you'll come across!
49
+
-**Stacktrace Parsing:** Convert raw and hard to read stack strings into clean, structured data.
50
+
-**Stacktrace Stringification:** Turn a parsed stack back into a string.
51
+
-**Stacktrace Conversion:** Transform stack traces between different formats.
52
+
-**Structured CallSite Info:** Directly work with static data gathered from V8 `CallSite` objects.
53
+
-**Source Map Integration:** Map minified or transpiled stack frames back to their original source files and lines for accurate debugging.
54
+
-**Context Enrichment:** Add valuable surrounding code context to each stack frame for deeper insights.
55
+
-**Error Serialization:** Make error properties enumerable for easier serialization and logging.
56
+
57
+
And best of all, supports most stack trace formats you'll come across!
57
58
58
-
<sub>*Stacklyn V2 will add even more cool stuff! See the [roadmap](https://stacklynjs.github.io/docs?p=stacklyn/roadmap) to know more.*</sub>
59
+
<sub>*Stacklyn V2 will add even more cool stuff! See the [roadmap](#roadmap) to know more.*</sub>
0 commit comments