{"id":28717224,"url":"https://github.com/edvardchen/on-head","last_synced_at":"2025-07-15T21:35:30.632Z","repository":{"id":57314409,"uuid":"227309279","full_name":"edvardchen/on-head","owner":"edvardchen","description":"Hook before http response send head","archived":false,"fork":false,"pushed_at":"2019-12-11T08:37:25.000Z","size":157,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-27T04:07:16.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/edvardchen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-11T08:03:16.000Z","updated_at":"2019-12-11T08:38:35.000Z","dependencies_parsed_at":"2022-09-20T23:30:50.609Z","dependency_job_id":null,"html_url":"https://github.com/edvardchen/on-head","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/edvardchen/on-head","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvardchen%2Fon-head","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvardchen%2Fon-head/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvardchen%2Fon-head/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvardchen%2Fon-head/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edvardchen","download_url":"https://codeload.github.com/edvardchen/on-head/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvardchen%2Fon-head/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259914931,"owners_count":22931334,"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":"2025-06-15T03:13:49.145Z","updated_at":"2025-06-15T03:13:56.390Z","avatar_url":"https://github.com/edvardchen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# on-head\n\nHook before http response send head\n\n## Install\n\n```bash\nnpm i on-head\n```\n\n## Usage\n\n```typescript\nimport Express from 'express';\n\nconst app = Express();\napp.use((req, res, next) =\u003e {\n  onHead(res, () =\u003e {\n    // You still can modify response headers\n    res.setHeader('tracer-id', '1234');\n  });\n  next();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvardchen%2Fon-head","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedvardchen%2Fon-head","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvardchen%2Fon-head/lists"}