{"id":17766661,"url":"https://github.com/floatdrop/ignore-middleware-error","last_synced_at":"2025-04-01T13:45:19.163Z","repository":{"id":57271640,"uuid":"42309403","full_name":"floatdrop/ignore-middleware-error","owner":"floatdrop","description":"Ignore errors from middleware","archived":false,"fork":false,"pushed_at":"2015-09-11T13:17:01.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T01:31:42.249Z","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/floatdrop.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":"2015-09-11T13:14:22.000Z","updated_at":"2015-09-11T13:15:51.000Z","dependencies_parsed_at":"2022-08-25T07:00:57.409Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/ignore-middleware-error","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fignore-middleware-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fignore-middleware-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fignore-middleware-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fignore-middleware-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/ignore-middleware-error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651510,"owners_count":20811991,"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-26T20:34:04.361Z","updated_at":"2025-04-01T13:45:19.138Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ignore-middleware-error [![Build Status](https://travis-ci.org/floatdrop/ignore-middleware-error.svg?branch=master)](https://travis-ci.org/floatdrop/ignore-middleware-error)\n\n\u003e Ignore error from middleware\n\n\n## Install\n\n```\n$ npm install --save ignore-middleware-error\n```\n\n\n## Usage\n\n```js\nvar ignoreMiddlewareError = require('ignore-middleware-error');\n\nfunction mw(req, res, next) {\n\tnext(new Error('Bang!'));\n}\n\nvar silentMw = ignoreMiddlewareError(mw);\n```\n\n\n## API\n\n### ignoreMiddlewareError(middleware)\n\n#### middleware\n\nType: `function`\n\nMiddleware function, that should be silenced.\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fignore-middleware-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fignore-middleware-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fignore-middleware-error/lists"}