{"id":20438308,"url":"https://github.com/seebigs/stack-remap","last_synced_at":"2025-03-05T07:21:51.916Z","repository":{"id":57369169,"uuid":"83324905","full_name":"seebigs/stack-remap","owner":"seebigs","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-27T16:09:02.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T19:13:17.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seebigs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-27T15:22:27.000Z","updated_at":"2017-02-27T16:09:04.000Z","dependencies_parsed_at":"2022-09-03T19:10:37.371Z","dependency_job_id":null,"html_url":"https://github.com/seebigs/stack-remap","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/seebigs%2Fstack-remap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fstack-remap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fstack-remap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seebigs%2Fstack-remap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seebigs","download_url":"https://codeload.github.com/seebigs/stack-remap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241983597,"owners_count":20052711,"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":[],"created_at":"2024-11-15T09:10:22.548Z","updated_at":"2025-03-05T07:21:51.881Z","avatar_url":"https://github.com/seebigs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stack-remap\n\n**Remap the stacktrace on Errors to point to the src files of your choosing**\n\n## Install\n```\n$ npm install stack-remap\n```\n\n## Use\n\n```js\nvar stackRemap = require('stack-remap');\n\n// override prepareStackTrace\nstackRemap.install();\n\n// setup your mappings\nstackRemap.add([\n    {\n        source: '/path/to/my/src/one.js',\n        original: { line: 1, column: 0 },\n        generated: { line: 5, column: 0 },\n        totalLines: 80\n    },\n    {\n        source: '/path/to/my/src/two.js',\n        original: { line: 1, column: 0 },\n        generated: { line: 85, column: 0 },\n        totalLines: 120\n    }\n]);\n\n// run your code and see the stack\nconsole.log(new Error('foo'));\n\n// reset mappings if desired\nstackRemap.reset();\n\n// stop overriding prepareStackTrace\nstackRemap.uninstall();\n\n// everything is back to normal\nconsole.log(new Error('foo'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebigs%2Fstack-remap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseebigs%2Fstack-remap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseebigs%2Fstack-remap/lists"}