{"id":22934649,"url":"https://github.com/frani/simple-morgan-res-body","last_synced_at":"2025-04-01T18:46:50.616Z","repository":{"id":65985631,"uuid":"603826591","full_name":"frani/simple-morgan-res-body","owner":"frani","description":"A middleware that made simple to get your res-content-body for your morgan use","archived":false,"fork":false,"pushed_at":"2023-02-19T18:30:35.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T10:02:06.924Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frani.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-19T17:26:14.000Z","updated_at":"2023-03-08T23:30:33.000Z","dependencies_parsed_at":"2023-04-11T18:32:52.947Z","dependency_job_id":null,"html_url":"https://github.com/frani/simple-morgan-res-body","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"4f7c31466dd99467e21565f70f63dd376eef8e1e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Fsimple-morgan-res-body","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Fsimple-morgan-res-body/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Fsimple-morgan-res-body/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frani%2Fsimple-morgan-res-body/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frani","download_url":"https://codeload.github.com/frani/simple-morgan-res-body/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246693720,"owners_count":20818942,"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-12-14T11:44:33.428Z","updated_at":"2025-04-01T18:46:50.598Z","avatar_url":"https://github.com/frani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-morgan-res-body\n\nA middleware that made simple to get your res-content-body for your morgan use\n\n# Install\n\nusing NPM\n```\nnpm install simple-morgan-res-body\n```\n\nor using yanr\n```\nyarn add simple-morgan-res-body\n```\n\n# Usage \u0026 Api\n\n```javascript\n\nconst express = require('express')\nconst morgan = require('morgan')\nconst morgenResBody = require('simple-morgan-res-body')\n\nconst app = express()\n/**\n * By default response content is set in res.contentBody\n * but you can change it with the key name that you want\n*/\napp.use(morgenResBody('contentBody'))\n\nmorgan.token('res-body', (req,res) =\u003e res.contentBody)\n\n/**\n * Then setup morgan format\n*/\napp.use(morgan(':res-body'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrani%2Fsimple-morgan-res-body","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrani%2Fsimple-morgan-res-body","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrani%2Fsimple-morgan-res-body/lists"}