{"id":19062079,"url":"https://github.com/netcode/better-errors","last_synced_at":"2025-04-24T07:50:22.863Z","repository":{"id":57189531,"uuid":"302055819","full_name":"netcode/better-errors","owner":"netcode","description":"better Nodejs error","archived":false,"fork":false,"pushed_at":"2020-10-13T12:37:20.000Z","size":1199,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T00:48:06.996Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netcode.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-10-07T14:06:23.000Z","updated_at":"2023-03-04T05:36:26.000Z","dependencies_parsed_at":"2022-09-15T06:41:23.170Z","dependency_job_id":null,"html_url":"https://github.com/netcode/better-errors","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/netcode%2Fbetter-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcode%2Fbetter-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcode%2Fbetter-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netcode%2Fbetter-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netcode","download_url":"https://codeload.github.com/netcode/better-errors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250518548,"owners_count":21443985,"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-09T00:24:24.895Z","updated_at":"2025-04-24T07:50:22.824Z","avatar_url":"https://github.com/netcode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# better-errors\nBetter Nodejs error is a small nodejs package to render errors in a better way to make it easy for you to identify errors and fix it fast.\n\n![MIT License](https://img.shields.io/github/license/netcode/better-errors.svg?style=flat-square)\n![Issues](https://img.shields.io/github/issues/netcode/better-errors.svg?style=flat-square)\n\n![screenshot of better-errors](https://raw.githubusercontent.com/netcode/better-errors/master/Docs/screenshot.png)\n\n## Installation\n\nInstall with npm:\n\n```\n$ npm install better-errors\n```\n\n## Usage and Examples\n\n1. Unhandled Exception \n\nRequire `better-errors` on your code and it will catch the unhandled errors and render it.\n\n```\nrequire('better-errors')\n```\n\n2. Handled Exception\n\nImport the `BetterError` function and use it to render errors\n\n```js\nconst { BetterError } = require('better-errors');\n\n//...\n\ntry{\n    functionCall()\n}catch(error){\n    console.log(BetterError(error));\n}\n```\n\n## Show stacktrace\n\nStacktrace is hidden by default tro reduce confusion, if you want to show the stacktrace just add `--show-stack` argument to node starting command.\n\n```\n$ node index.js --show-stack\n```\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcode%2Fbetter-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetcode%2Fbetter-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetcode%2Fbetter-errors/lists"}