{"id":21038358,"url":"https://github.com/qlaffont/unify-fastify","last_synced_at":"2026-05-18T22:13:53.118Z","repository":{"id":43760533,"uuid":"491512010","full_name":"qlaffont/unify-fastify","owner":"qlaffont","description":"Fastify error handler with unify-errors","archived":false,"fork":false,"pushed_at":"2024-04-14T07:48:34.000Z","size":1399,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T12:02:53.950Z","etag":null,"topics":["fastify","rest","typescript","unify-errors"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unify-fastify","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/qlaffont.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-05-12T12:50:05.000Z","updated_at":"2024-04-15T12:36:30.862Z","dependencies_parsed_at":"2024-02-12T15:43:08.602Z","dependency_job_id":"cf0b8354-dd5d-4736-9270-4665a9860c5d","html_url":"https://github.com/qlaffont/unify-fastify","commit_stats":null,"previous_names":["qlaffont/unify-fastify","flexper/unify-fastify"],"tags_count":344,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlaffont%2Funify-fastify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlaffont%2Funify-fastify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlaffont%2Funify-fastify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qlaffont%2Funify-fastify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qlaffont","download_url":"https://codeload.github.com/qlaffont/unify-fastify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243482848,"owners_count":20297897,"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":["fastify","rest","typescript","unify-errors"],"created_at":"2024-11-19T13:31:36.841Z","updated_at":"2026-05-18T22:13:53.047Z","avatar_url":"https://github.com/qlaffont.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test Coverage](https://api.codeclimate.com/v1/badges/d47a13f51cd7b2e75029/test_coverage)](https://codeclimate.com/github/qlaffont/unify-fastify/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/d47a13f51cd7b2e75029/maintainability)](https://codeclimate.com/github/qlaffont/unify-fastify/maintainability)\n![npm](https://img.shields.io/npm/v/unify-fastify) ![npm](https://img.shields.io/npm/dm/unify-fastify) ![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/unify-fastify) ![NPM](https://img.shields.io/npm/l/unify-fastify)\n# Unify Fastify\n\nA Fastify plugin wrapping [unify-errors](https://github.com/qlaffont/unify-errors) to handle REST errors. Old Owner: [@flexper](https://github.com/flexper)\n\n## Install\n\n```sh\nnpm i unify-fastify\n# Or\nyarn add unify-fastify\n# Or\npnpm add unify-fastify\n```\n\n## Use\n\n```typescript\nimport fastify from 'fastify'\nimport unifyFastifyPlugin from 'unify-fastify';\nimport { BadRequest } from 'unify-errors';\n\nconst server = fastify()\nserver.register(unifyFastifyPlugin, { /* options */ })\n\nserver.get('/bad-request', async () =\u003e {\n  throw new BadRequest({ example: 'A bad request error'})\n})\n```\n\n## Plugin options\n\n| name             | default | description                      |\n| ---------------- | ------- | -------------------------------- |\n| _disableDetails_ | false   | Disable error details like stack |\n| _disableLog_     | false   | Disable logging on error         |\n\n\n## Tests\n\nTo execute jest tests (all errors, type integrity test)\n\n```\npnpm test\n```\n\n## Maintain\n\nThis package use [TSdx](https://github.com/jaredpalmer/tsdx). Please check documentation to update this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqlaffont%2Funify-fastify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqlaffont%2Funify-fastify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqlaffont%2Funify-fastify/lists"}