{"id":18951211,"url":"https://github.com/hmmhmmhm/string-error-parse","last_synced_at":"2026-05-03T13:43:41.386Z","repository":{"id":98551832,"uuid":"166399788","full_name":"hmmhmmhm/string-error-parse","owner":"hmmhmmhm","description":"📚 Simple string error parser of node.js","archived":false,"fork":false,"pushed_at":"2019-01-18T12:41:17.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T00:33:21.479Z","etag":null,"topics":["error","javascript","nodejs","parse","parser"],"latest_commit_sha":null,"homepage":null,"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/hmmhmmhm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-18T12:13:00.000Z","updated_at":"2020-05-11T23:21:25.000Z","dependencies_parsed_at":"2023-05-29T14:15:17.298Z","dependency_job_id":null,"html_url":"https://github.com/hmmhmmhm/string-error-parse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hmmhmmhm/string-error-parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fstring-error-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fstring-error-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fstring-error-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fstring-error-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmmhmmhm","download_url":"https://codeload.github.com/hmmhmmhm/string-error-parse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmmhmmhm%2Fstring-error-parse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32571456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","javascript","nodejs","parse","parser"],"created_at":"2024-11-08T13:26:55.237Z","updated_at":"2026-05-03T13:43:41.382Z","avatar_url":"https://github.com/hmmhmmhm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string-error-parse\n\nThis module parses the error message (string) of node.js.\n\nThis is very useful when you check for errors, for example, in a child process that cannot be verified by a previous instance of Error. Unlike stack-trace module, this module is only focused on interpreting string errors.\n\n\n\n## Install\n\n```shell\nnpm install string-error-parse\n```\n\n\n\n### How to use\n\n```javascript\n// Prepare Plain Error Text\nvar input = `H:\\\\Private#2019\\\\CODE\\\\@submodule\\\\stably_test\\\\test.js:16\nthrow new Error('hello?')\n^\n\nError: hello?\nat Interface.prompt.on (H:\\\\Private#2018\\\\CODE\\\\@submodule\\\\stably_test\\\\test.js:16:11)\nat Interface.emit (events.js:182:13)\nat Interface._onLine (readline.js:301:10)\nat Interface._normalWrite (readline.js:468:12)\nat Socket.ondata (readline.js:159:10)\nat Socket.emit (events.js:182:13)\nat addChunk (_stream_readable.js:287:12)\nat readableAddChunk (_stream_readable.js:268:11)\nat Socket.Readable.push (_stream_readable.js:223:10)\nat Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:122:17)`\n\n// Parse the Plain Error Text\nvar strErrParser = require('string-error-parse')\nvar parsed = strErrParser(input)\n\n// Parsed Error Object Example\nvar example = { main:\n   { text: 'hello?',\n     fileName: 'H:\\\\Private#2019\\\\CODE\\\\@submodule\\\\stably_test\\\\test.js',\n     lineNumber: '16',\n     lineText: \"throw new Error('hello?')\" },\n  sub:\n   [ { functionName: 'Interface.prompt.on',\n       typeName: 'Interface.prompt',\n       methodName: 'on',\n       columnNumber: '11',\n       lineNumber: '16',\n       fileName: 'H:\\\\Private#2019\\\\CODE\\\\@submodule\\\\stably_test\\\\test.js' },\n     { functionName: 'Interface.emit',\n       typeName: 'Interface',\n       methodName: 'emit',\n       columnNumber: '13',\n       lineNumber: '182',\n       fileName: 'events.js' },\n     { functionName: 'Interface._onLine',\n       typeName: 'Interface',\n       methodName: '_onLine',\n       columnNumber: '10',\n       lineNumber: '301',\n       fileName: 'readline.js' },\n     { functionName: 'Interface._normalWrite',\n       typeName: 'Interface',\n       methodName: '_normalWrite',\n       columnNumber: '12',\n       lineNumber: '468',\n       fileName: 'readline.js' },\n     { functionName: 'Socket.ondata',\n       typeName: 'Socket',\n       methodName: 'ondata',\n       columnNumber: '10',\n       lineNumber: '159',\n       fileName: 'readline.js' },\n     { functionName: 'Socket.emit',\n       typeName: 'Socket',\n       methodName: 'emit',\n       columnNumber: '13',\n       lineNumber: '182',\n       fileName: 'events.js' },\n     { functionName: 'addChunk',\n       typeName: '',\n       methodName: 'addChunk',\n       columnNumber: '12',\n       lineNumber: '287',\n       fileName: '_stream_readable.js' },\n     { functionName: 'readableAddChunk',\n       typeName: '',\n       methodName: 'readableAddChunk',\n       columnNumber: '11',\n       lineNumber: '268',\n       fileName: '_stream_readable.js' },\n     { functionName: 'Socket.Readable.push',\n       typeName: 'Socket.Readable',\n       methodName: 'push',\n       columnNumber: '10',\n       lineNumber: '223',\n       fileName: '_stream_readable.js' },\n     { functionName: 'Pipe.onStreamRead [as onread]',\n       typeName: 'Pipe',\n       methodName: 'onStreamRead [as onread]',\n       columnNumber: '17',\n       lineNumber: '122',\n       fileName: 'internal/stream_base_commons.js' } ] }\n\n```\n\n\n\n## License\n\nMIT Licensed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmmhmmhm%2Fstring-error-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmmhmmhm%2Fstring-error-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmmhmmhm%2Fstring-error-parse/lists"}