{"id":21016094,"url":"https://github.com/protontype/proton-body-parser","last_synced_at":"2026-04-29T16:10:35.537Z","repository":{"id":57331842,"uuid":"132827618","full_name":"protontype/proton-body-parser","owner":"protontype","description":"Express body-parser middleware for Protontype","archived":false,"fork":false,"pushed_at":"2018-11-30T12:10:53.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T23:34:27.711Z","etag":null,"topics":["body-parser","expressjs","middleware","protontype","rest-api","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/protontype.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-10T00:34:12.000Z","updated_at":"2018-11-30T12:08:51.000Z","dependencies_parsed_at":"2022-09-26T20:53:15.751Z","dependency_job_id":null,"html_url":"https://github.com/protontype/proton-body-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protontype%2Fproton-body-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protontype%2Fproton-body-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protontype%2Fproton-body-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/protontype%2Fproton-body-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/protontype","download_url":"https://codeload.github.com/protontype/proton-body-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243447394,"owners_count":20292448,"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":["body-parser","expressjs","middleware","protontype","rest-api","typescript"],"created_at":"2024-11-19T10:12:10.959Z","updated_at":"2026-04-29T16:10:30.505Z","avatar_url":"https://github.com/protontype.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/proton-body-parser.svg)](https://badge.fury.io/js/proton-body-parser)\n\n# Express body-parser middleware for Protontype\n\nThis module wraps [body-parser](https://github.com/expressjs/body-parser) Nodejs module for use into a [Protontype](https://protontype.github.io/) project\n\n## Middlewares\n- **JsonBodyParserMiddleware**: Equivalent to [JSON body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparserjsonoptions)\n- **RawBodyParserMiddleware**: Equivalent to [Raw body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparserrawoptions)\n- **TextBodyParserMiddleware**: Equivalent to [Text body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparsertextoptions)\n- **UrlBodyParserMiddleware**: Equivalent to [URL-encoded form body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparserurlencodedoptions)\n\n### How to Use\n\n```typescript\nlet app = new ProtonApplication().addMiddlewareAs(JsonBodyParserMiddleware)\napp.start();\n```\n\nWith options:\n\n```typescript\nlet middlewareWithOptions = new JsonBodyParserMiddleware({ type: 'application/*+json' });\nlet app = new ProtonApplication().addMiddleware(middleware)\napp.start();\n```\n\nFor all options see: \n* [JSON body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparserjsonoptions)\n* [Raw body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparserrawoptions)\n* [Text body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparsertextoptions)\n* [URL-encoded form body parser](https://github.com/expressjs/body-parser/blob/master/README.md#bodyparserurlencodedoptions)\n\nFor how to use middlewares into Protontype see [documentation](https://protontype.github.io/middlewares/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotontype%2Fproton-body-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotontype%2Fproton-body-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotontype%2Fproton-body-parser/lists"}