{"id":13509193,"url":"https://github.com/stacktracejs/error-stack-parser","last_synced_at":"2025-05-14T21:04:21.139Z","repository":{"id":12365072,"uuid":"15014773","full_name":"stacktracejs/error-stack-parser","owner":"stacktracejs","description":"Extract meaning from JS Errors","archived":false,"fork":false,"pushed_at":"2023-01-27T10:34:31.000Z","size":7281,"stargazers_count":472,"open_issues_count":23,"forks_count":53,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-13T13:11:06.173Z","etag":null,"topics":["error-handling","javascript","stacktracejs"],"latest_commit_sha":null,"homepage":"https://www.stacktracejs.com/#!/docs/error-stack-parser","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stacktracejs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-07T23:23:28.000Z","updated_at":"2025-05-07T18:42:48.000Z","dependencies_parsed_at":"2023-02-15T08:00:59.023Z","dependency_job_id":null,"html_url":"https://github.com/stacktracejs/error-stack-parser","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacktracejs%2Ferror-stack-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacktracejs%2Ferror-stack-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacktracejs%2Ferror-stack-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacktracejs%2Ferror-stack-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stacktracejs","download_url":"https://codeload.github.com/stacktracejs/error-stack-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198452,"owners_count":22030964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-handling","javascript","stacktracejs"],"created_at":"2024-08-01T02:01:04.365Z","updated_at":"2025-05-14T21:04:21.057Z","avatar_url":"https://github.com/stacktracejs.png","language":"JavaScript","readme":"error-stack-parser.js - Extract meaning from JS Errors\n===============\n[![Build Status](https://img.shields.io/github/workflow/status/stacktracejs/error-stack-parser/Continuous%20Integration/master?logo=github\u0026style=flat-square)](https://github.com/stacktracejs/error-stack-parser/actions?query=workflow%3AContinuous+Integration+branch%3Amaster)\n[![Coverage Status](https://img.shields.io/coveralls/stacktracejs/error-stack-parser.svg?style=flat-square)](https://coveralls.io/r/stacktracejs/error-stack-parser?branch=master)\n[![GitHub license](https://img.shields.io/github/license/stacktracejs/error-stack-parser.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![size with dependencies](https://img.shields.io/badge/size-4.8k-green.svg?style=flat-square)](https://github.com/stacktracejs/error-stack-parser/releases)\n[![gzip size](https://img.shields.io/badge/gzipped-1.8k-green.svg?style=flat-square)](https://github.com/stacktracejs/error-stack-parser/releases)\n[![module format](https://img.shields.io/badge/module%20format-umd-lightgrey.svg?style=flat-square\u0026colorB=ff69b4)](https://github.com/stacktracejs/error-stack-parser/releases)\n[![code of conduct](https://img.shields.io/badge/code%20of-conduct-lightgrey.svg?style=flat-square\u0026colorB=ff69b4)](http://todogroup.org/opencodeofconduct/#stacktrace.js/me@eriwen.com)\n[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/error-stack-parser/badge)](https://www.jsdelivr.com/package/npm/error-stack-parser)\n\nSimple, cross-browser [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) parser.\nThis library parses and extracts function names, URLs, line numbers, and column numbers from the given Error's `stack` as\nan Array of [StackFrame](http://git.io/stackframe)s. \n\nOnce you have parsed out StackFrames, you can do much more interesting things. See [stacktrace-gps](http://git.io/stacktrace-gps).\n\nNote that in IE9 and earlier, `Error` objects don't have enough information to extract much of anything. In IE 10, `Error`s\nare given a `stack` once they're `throw`n.\n\n## Browser Support\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/stacktracejs.svg)](https://saucelabs.com/u/stacktracejs)\n\n## Usage\n```js\nErrorStackParser.parse(new Error('BOOM'));\n\n=\u003e [\n        StackFrame({functionName: 'foo', args: [], fileName: 'path/to/file.js', lineNumber: 35, columnNumber: 79, isNative: false, isEval: false}),\n        StackFrame({functionName: 'Bar', fileName: 'https://cdn.somewherefast.com/utils.min.js', lineNumber: 1, columnNumber: 832, isNative: false, isEval: false, isConstructor: true}),\n        StackFrame(... and so on ...)\n   ]\n```\n\n## Installation\n```bash\nnpm install error-stack-parser\nbower install error-stack-parser\nhttps://raw.githubusercontent.com/stacktracejs/error-stack-parser/master/dist/error-stack-parser.min.js\n```\n\n## Contributing\nWant to be listed as a *Contributor*? Start with the [Contributing Guide](.github/CONTRIBUTING.md)!\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstacktracejs%2Ferror-stack-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstacktracejs%2Ferror-stack-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstacktracejs%2Ferror-stack-parser/lists"}