{"id":21635188,"url":"https://github.com/celeri-server/middleware-pipeline","last_synced_at":"2026-05-11T09:03:56.154Z","repository":{"id":143745627,"uuid":"89895364","full_name":"celeri-server/middleware-pipeline","owner":"celeri-server","description":"A generic library for creating middleware pipelines","archived":false,"fork":false,"pushed_at":"2021-01-06T08:02:06.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T07:05:19.253Z","etag":null,"topics":["celeri","middleware","nodejs"],"latest_commit_sha":null,"homepage":"https://www.celerijs.com/docs/middleware-pipeline.html","language":"TypeScript","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/celeri-server.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-01T03:45:33.000Z","updated_at":"2021-01-06T08:02:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0600bdf-df49-481e-8278-be3733fc441a","html_url":"https://github.com/celeri-server/middleware-pipeline","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"14da51a72f0a306522cef2275f0e97f0d4aff3d3"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeri-server%2Fmiddleware-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeri-server%2Fmiddleware-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeri-server%2Fmiddleware-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celeri-server%2Fmiddleware-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/celeri-server","download_url":"https://codeload.github.com/celeri-server/middleware-pipeline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244177106,"owners_count":20410965,"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":["celeri","middleware","nodejs"],"created_at":"2024-11-25T03:20:03.134Z","updated_at":"2026-05-11T09:03:56.016Z","avatar_url":"https://github.com/celeri-server.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n```bash\n$ npm install --save @celeri/middleware-pipeline\n```\n\n\n\n### Import\n\n#### ES6 Modules\n\n```javascript\nimport { MiddlewarePipeline } from '@celeri/middleware-pipeline';\n```\n\n#### CommonJS Modules\n\n```javascript\nconst { MiddlewarePipeline } = require('@celeri/middleware-pipeline');\n```\n\n\n\n### Usage\n\n```javascript\nconst pipieline = new MiddlewarePipeline();\n\npipeline\n\t// Middlewares can be async functions to be awaited\n\t.use(async (url) =\u003e await httpGet(url))\n\t// Or they can be normal functions\n\t.use((body) =\u003e JSON.parse(body))\n\t// Error handling middleware can be placed with catch\n\t.catch({ error } =\u003e console.error(error))\n\t// A catch implies that the error was handled (unless it also throws),\n\t// so following middleware will still run\n\t.use(() =\u003e {\n\t\t// This runs regardless of whether the first two steps passed\n\t});\n\npipeline.run('http://www.example.com');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceleri-server%2Fmiddleware-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceleri-server%2Fmiddleware-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceleri-server%2Fmiddleware-pipeline/lists"}