{"id":17917531,"url":"https://github.com/simplesmiler/assimilate-error","last_synced_at":"2025-04-03T07:45:16.884Z","repository":{"id":57185180,"uuid":"85117591","full_name":"simplesmiler/assimilate-error","owner":"simplesmiler","description":"Assimilate error that originated from another execution context","archived":false,"fork":false,"pushed_at":"2017-03-15T20:32:52.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T05:42:06.515Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplesmiler.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-03-15T20:26:00.000Z","updated_at":"2017-03-15T20:27:44.000Z","dependencies_parsed_at":"2022-09-14T10:02:16.417Z","dependency_job_id":null,"html_url":"https://github.com/simplesmiler/assimilate-error","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/simplesmiler%2Fassimilate-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesmiler%2Fassimilate-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesmiler%2Fassimilate-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplesmiler%2Fassimilate-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplesmiler","download_url":"https://codeload.github.com/simplesmiler/assimilate-error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246961923,"owners_count":20861177,"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-10-28T20:07:43.085Z","updated_at":"2025-04-03T07:45:16.861Z","avatar_url":"https://github.com/simplesmiler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assimilate-error\n\n\u003e Assimilate error-like object, that originated from a different execution context, or was created in a weird way.\n\n## Install\n\n``` sh\n$ npm install assimilate-error --save\n```\n\n## Usage\n\n``` js\nvar errio = require('errio');\nvar assimilateError = require('assimilate-error');\n\nvar err1 = new Error('Demo');\nvar serialized1 = errio.toObject(err1, { stack: true });\n\nvar err2 = errio.fromObject(serialized1);\nerr2; // outputs `Error { ... }` in the Chrome console\n\nerr2 = assimilateError(err2, true);\nerr2; // outputs `Error: Demo` with the stack in Chrome console\n```\n\n## License\n\n[ISC](https://opensource.org/licenses/ISC)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplesmiler%2Fassimilate-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplesmiler%2Fassimilate-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplesmiler%2Fassimilate-error/lists"}