{"id":22518679,"url":"https://github.com/mikeludemann/error-handling-stack-traces","last_synced_at":"2025-03-28T02:41:54.084Z","repository":{"id":42895901,"uuid":"253471258","full_name":"mikeludemann/error-handling-stack-traces","owner":"mikeludemann","description":"A simple helpful small library to parse and handle the error stack traces","archived":false,"fork":false,"pushed_at":"2022-12-30T20:03:22.000Z","size":110,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T11:05:31.091Z","etag":null,"topics":["error","error-handling","handling","javascript","parser","stack","stack-traces","trace","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mikeludemann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-06T11:00:16.000Z","updated_at":"2020-06-03T15:19:00.000Z","dependencies_parsed_at":"2023-01-31T15:15:41.881Z","dependency_job_id":null,"html_url":"https://github.com/mikeludemann/error-handling-stack-traces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeludemann%2Ferror-handling-stack-traces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeludemann%2Ferror-handling-stack-traces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeludemann%2Ferror-handling-stack-traces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeludemann%2Ferror-handling-stack-traces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeludemann","download_url":"https://codeload.github.com/mikeludemann/error-handling-stack-traces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245960253,"owners_count":20700772,"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","error-handling","handling","javascript","parser","stack","stack-traces","trace","typescript"],"created_at":"2024-12-07T04:16:19.187Z","updated_at":"2025-03-28T02:41:54.065Z","avatar_url":"https://github.com/mikeludemann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# error-handling-stack-traces\n\nA simple helpful small library to parse and handle the error stack traces\n\n## Information\n\nSupported for different browsers and platforms:\n\n* Firefox\n* Chrome\n* Edge\n* Internet Explorer (IE)\n* Node\n* ...\n\n## Usage\n\nInstall the `errors-handling-stack-traces` package via manager. \n\nActual we use only `npm`.\n\n```bash\nnpm install errors-handling-stack-traces\n```\n\nExample code:\n\n```js\nimport { parsingErrorStackTraces } from 'errors-handling-stack-traces';\n\nfunction foobar() {\n  throw new Error('fail');\n}\n\ntry {\n  foobar();\n} catch (error) {\n  const parsing = parsingErrorStackTraces(error.stack);\n  console.log(parsing);\n} finally {\n  console.log(\"End of these code.\");\n}\n\n  // Logs:\n  // [\n  //   {\n  //     line: 4,\n  //     column: 8,\n  //     type: '',\n  //     name: 'foobar',\n  //     raw: '    at foo (/my-project/foo.ts:4:8)'\n  //   },\n  // ]\n```\n\n### Note: \n_The `type` will be the string._\n_If the string `\"native\"`, then native code execution was detected._\n\n## License\n\nMIT\n\nSee [the license file](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeludemann%2Ferror-handling-stack-traces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeludemann%2Ferror-handling-stack-traces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeludemann%2Ferror-handling-stack-traces/lists"}