{"_id":"hapi-set-header","_rev":"4632483","name":"hapi-set-header","description":"Set a Hapi response header for all requests","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"davidwood","email":""}],"time":{"modified":"2026-04-10T18:58:58.000Z","created":"2016-01-02T16:48:37.891Z","1.0.2":"2016-02-22T03:42:24.269Z","1.0.1":"2016-01-20T05:06:18.936Z","1.0.0":"2016-01-02T16:48:37.891Z"},"users":{},"author":{"name":"David Wood","email":"bitprobe@gmail.com"},"repository":{"type":"git","url":"git://github.com/davidwood/hapi-set-header.git"},"versions":{"1.0.2":{"name":"hapi-set-header","version":"1.0.2","description":"Set a Hapi response header for all requests","main":"index.js","scripts":{"lint":"eslint .","test":"NODE_ENV=test istanbul test _mocha -- --check-leaks"},"repository":{"type":"git","url":"git://github.com/davidwood/hapi-set-header.git"},"keywords":["hapi","header"],"author":{"name":"David Wood","email":"bitprobe@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/davidwood/hapi-set-header/issues"},"homepage":"https://github.com/davidwood/hapi-set-header#readme","dependencies":{},"devDependencies":{"eslint":"^2.2.0","eslint-config-airbnb":"^6.0.1","eslint-plugin-react":"^4.0.0","istanbul":"^0.4.2","mocha":"^2.4.5"},"engines":{"node":">=4.0.0"},"gitHead":"01f829a008e5cca4c795a6655dffa4005db68a84","_id":"hapi-set-header@1.0.2","_shasum":"2afae002c6719d6d54f3fa88462f822892d2df13","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"davidwood","email":"bitprobe@gmail.com"},"maintainers":[{"name":"davidwood","email":""}],"dist":{"shasum":"2afae002c6719d6d54f3fa88462f822892d2df13","size":2186,"noattachment":false,"key":"/hapi-set-header/-/hapi-set-header-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hapi-set-header/download/hapi-set-header-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/hapi-set-header-1.0.2.tgz_1456112539662_0.2469155453145504"},"directories":{},"publish_time":1456112544269,"_hasShrinkwrap":false,"_cnpm_publish_time":1456112544269,"_cnpmcore_publish_time":"2021-12-16T19:10:21.896Z"},"1.0.1":{"name":"hapi-set-header","version":"1.0.1","description":"Set a Hapi response header for all requests","main":"index.js","scripts":{"lint":"eslint .","test":"NODE_ENV=test istanbul test _mocha -- --check-leaks"},"repository":{"type":"git","url":"git://github.com/davidwood/hapi-set-header.git"},"keywords":["hapi","header"],"author":{"name":"David Wood","email":"bitprobe@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/davidwood/hapi-set-header/issues"},"homepage":"https://github.com/davidwood/hapi-set-header#readme","dependencies":{},"devDependencies":{"eslint":"^1.10.3","eslint-config-airbnb":"^3.1.0","istanbul":"^0.4.2","mocha":"^2.3.4"},"engines":{"node":">=4.0.0"},"gitHead":"085031ac130bef471aa1b6ceb5318b1317b37ca5","_id":"hapi-set-header@1.0.1","_shasum":"b2ba5d95d2d4bbcc5d2ffa986ae19f48a300a592","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"davidwood","email":"bitprobe@gmail.com"},"maintainers":[{"name":"davidwood","email":""}],"dist":{"shasum":"b2ba5d95d2d4bbcc5d2ffa986ae19f48a300a592","size":2148,"noattachment":false,"key":"/hapi-set-header/-/hapi-set-header-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hapi-set-header/download/hapi-set-header-1.0.1.tgz"},"directories":{},"publish_time":1453266378936,"_hasShrinkwrap":false,"_cnpm_publish_time":1453266378936,"_cnpmcore_publish_time":"2021-12-16T19:10:22.109Z"},"1.0.0":{"name":"hapi-set-header","version":"1.0.0","description":"Set a Hapi response header for all requests","main":"index.js","scripts":{"lint":"eslint .","test":"NODE_ENV=test istanbul test _mocha -- --check-leaks"},"repository":{"type":"git","url":"git://github.com/davidwood/hapi-set-header.git"},"keywords":["hapi","header"],"author":{"name":"David Wood","email":"bitprobe@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/davidwood/hapi-set-header/issues"},"homepage":"https://github.com/davidwood/hapi-set-header#readme","dependencies":{},"devDependencies":{"eslint":"^1.10.3","eslint-config-airbnb":"^2.1.1","istanbul":"^0.4.1","mocha":"^2.3.4"},"engines":{"node":">=4.0.0"},"gitHead":"4639c40f66372b5988bcb0ccac8a04cf4b6840ff","_id":"hapi-set-header@1.0.0","_shasum":"c15c17024719d3c23879dcb51dd963bb4d657081","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"davidwood","email":"bitprobe@gmail.com"},"maintainers":[{"name":"davidwood","email":""}],"dist":{"shasum":"c15c17024719d3c23879dcb51dd963bb4d657081","size":2072,"noattachment":false,"key":"/hapi-set-header/-/hapi-set-header-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hapi-set-header/download/hapi-set-header-1.0.0.tgz"},"directories":{},"publish_time":1451753317891,"_hasShrinkwrap":false,"_cnpm_publish_time":1451753317891,"_cnpmcore_publish_time":"2021-12-16T19:10:22.357Z"}},"readme":"# hapi-set-header\n\n[![Circle CI](https://circleci.com/gh/davidwood/hapi-set-header/tree/master.svg?style=svg)](https://circleci.com/gh/davidwood/hapi-set-header/tree/master)\n[![bitHound Overall Score](https://www.bithound.io/github/davidwood/hapi-set-header/badges/score.svg)](https://www.bithound.io/github/davidwood/hapi-set-header)\n\n`hapi-set-header` allows for globally setting a response header using an `onPreResponse` extension. Compatible with [Boom](https://www.npmjs.com/package/boom) responses.\n\n## Usage\n\nThe following example sets the `Server` header to `Test Server`\n\n```\nconst Hapi = require('hapi');\nconst setHeader = requre('hapi-set-header');\nconst server = new Hapi.Server({});\nsetHeader(server, 'Server', 'Test Server');\n```\n","_attachments":{},"homepage":"https://github.com/davidwood/hapi-set-header#readme","bugs":{"url":"https://github.com/davidwood/hapi-set-header/issues"},"license":"MIT"}