{"id":13716625,"url":"https://github.com/goto-bus-stop/micro-helmet","last_synced_at":"2025-08-17T03:41:41.422Z","repository":{"id":34932403,"uuid":"192063556","full_name":"goto-bus-stop/micro-helmet","owner":"goto-bus-stop","description":"security headers for micro","archived":false,"fork":false,"pushed_at":"2025-06-17T04:04:33.000Z","size":19,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"default","last_synced_at":"2025-07-24T15:10:58.991Z","etag":null,"topics":["csp","headers","helmet","hsts","http","http-headers","micro","security"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goto-bus-stop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2019-06-15T10:00:39.000Z","updated_at":"2023-07-25T14:26:43.000Z","dependencies_parsed_at":"2025-07-24T12:51:25.146Z","dependency_job_id":null,"html_url":"https://github.com/goto-bus-stop/micro-helmet","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":0.4117647058823529,"last_synced_commit":"936dc7ad70af5eecdba72ba55fb85d54823d5e0a"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/goto-bus-stop/micro-helmet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fmicro-helmet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fmicro-helmet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fmicro-helmet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fmicro-helmet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goto-bus-stop","download_url":"https://codeload.github.com/goto-bus-stop/micro-helmet/tar.gz/refs/heads/default","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goto-bus-stop%2Fmicro-helmet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270803531,"owners_count":24648688,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csp","headers","helmet","hsts","http","http-headers","micro","security"],"created_at":"2024-08-03T00:01:12.632Z","updated_at":"2025-08-17T03:41:41.317Z","avatar_url":"https://github.com/goto-bus-stop.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":["Utilities"],"readme":"# micro-helmet\n\nsecurity headers for micro using [helmet](https://github.com/helmetjs/helmet)\n\nrequires node.js 10+\n\n[Install](#install) - [Usage](#usage) - [License: Apache-2.0](#license)\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n\n[npm-image]: https://img.shields.io/npm/v/micro-helmet.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/micro-helmet\n[travis-image]: https://img.shields.io/travis/com/goto-bus-stop/micro-helmet.svg?style=flat-square\n[travis-url]: https://travis-ci.com/goto-bus-stop/micro-helmet\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n\n## Install\n\n```\nnpm install micro-helmet\n```\n\n## Usage\n\nAs a wrapper function:\n\n```js\nvar helmet = require('micro-helmet')\n\nmodule.exports = helmet(async (req, res) =\u003e {\n  return { ok: true }\n})\n```\n\nAs a utility:\n\n```js\nvar helmet = require('micro-helmet')\n\nmodule.exports = async (req, res) =\u003e {\n  await helmet.addHeaders(req, res)\n  return { ok: true }\n}\n```\n\n## API\n\n### `helmet(handler, opts={})`\n\nWrap a handler function. This adds helmet's headers before calling your handler.\n`opts` can be used to configure specific headers. It is passed through to [helmet](https://github.com/helmetjs/helmet#how-it-works).\n\n### `await helmet.addHeaders(req, res, opts={})`\n\nAdd helmet's headers.\n`opts` can be used to configure specific headers. It is passed through to [helmet](https://github.com/helmetjs/helmet#how-it-works).\n\n## License\n\n[Apache-2.0](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fmicro-helmet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoto-bus-stop%2Fmicro-helmet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoto-bus-stop%2Fmicro-helmet/lists"}