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
* Optionally provide either a path to a directory containing source maps or a .map.js file - Defaults to current directory
46
-
* Optionally provide a path to a .txt file containing a JavaScript Error stack trace - Defaults to value in clipboard
47
+
* Optionally provide either a path to a directory containing source maps or a .map.js file - Defaults to the current directory
48
+
* Optionally provide a path to a .txt file containing a JavaScript Error stack trace - Defaults to the value in the clipboard
47
49
48
50
❤️ support@bugsplat.com
49
51
```
50
-
3. Run `stack-converter` and optionally specify a path to a directory containing .map files, path to a single .map file, and a path to a .txt file containing a stringified JavaScript Error. If no options are provided `stack-converter` will default to looking in the current directory for source maps and attempt to read the stringified JavaScript error stack from the system clipboard.
52
+
53
+
3. Run `stack-converter` and optionally specify a path to a directory containing .js.map files, path to a single .js.map file, and a path to a .txt file containing a stringified JavaScript Error. If no options are provided `stack-converter` will default to looking in the current directory for source maps and attempt to read the stringified JavaScript error stack from the system clipboard.
51
54
52
55
## 🧩 API
56
+
53
57
1. Install this package locally `npm i @bugsplat/stack-converter`
54
58
2. Import `StackConverter` from `@bugsplat/stack-converter`
3. Create a new instance of `StackConverter` passing it an array of paths to source map files. You can also await the static factory function `createFromDirectory(directory: string): Promise<StackConverter>` which takes a path to a directory and creates a new StackConverter with an array of source map file paths it finds in the specified directory
0 commit comments