{"_id":"@autotelic/fastify-redirect-heroku","_rev":"1-60d6410f95f22723778e19460b0524ba","name":"@autotelic/fastify-redirect-heroku","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@autotelic/fastify-redirect-heroku","version":"0.1.0","description":"Plugin for fastify to redirect away from a heroku domain","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tap --100 -j1 -R classic","example":"echo no example provided","lint":"standard","fix":"npm run lint -- --fix","validate":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-redirect-heroku.git"},"keywords":[],"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"license":"MIT","bugs":{"url":"https://github.com/autotelic/fastify-redirect-heroku/issues"},"homepage":"https://github.com/autotelic/fastify-redirect-heroku#readme","dependencies":{"fastify-plugin":"^3.0.0"},"devDependencies":{"fastify":"^3.0.0","fastify-cli":"^2.5.1","lint-staged":"^11.1.1","standard":"^16.0.3","tap":"^15.0.6"},"lint-staged":{"*.{js,jsx}":["npm run fix"]},"gitHead":"884bdc94efe12627ebe14f15cdab9bdb82bbf916","_id":"@autotelic/fastify-redirect-heroku@0.1.0","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Qgg4FXjtRaAX6tIQSe1tEBRDuNh3Gf+Cs20e5xQk41051Z6n6upQmI9WDpqTiUQE2gRhwJy8F/e/4V4fnxmFvQ==","shasum":"a38703ca9ec2f3a93032982b34d2ad85e93c407f","tarball":"https://registry.npmjs.org/@autotelic/fastify-redirect-heroku/-/fastify-redirect-heroku-0.1.0.tgz","fileCount":8,"unpackedSize":5950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAINvCRA9TVsSAnZWagAAQ3YP/1VMNEXdhOtbAHmqnhxV\nkZPJuV8StxYgUU8T/5mjKPPXA415+fkd3YULFwtv1O/mqXm64tLeEBaAE/OS\nvor7yoCrQobkD5WhOTl7KSOYiXxk62KI45arC4RqYV1WSCWoUOZimNQACPW0\nDpbd/423ZRa4tnpL3BvCf62eYHuOxtSI5wJqEhYlpKl1k16S6TEN3nteB+f+\n987w3oYUpOT2+i7J0I0EzU63cIbjSXnCpSzKdvr79Xvz8iKtV33ORCvJ3OfX\nQNEdS5KWOKCrdRfleeWQ3unEzjK8r9IrP+WHVg05vn9riEZmive73iY6xwIT\nQNJ0O8XU8O3Fy+eT77d7WPmJQFJp4Cpl2SXdn3sdG5hoVVGeVlBUw5Kbierj\nc2VoL8cr4/W+zGS9Tc2gKnG+AlU0nfQVwbUF9i9Dtl2MdX5wHVwNjMHlGYhj\nD8lIw5nLmXEoI0kktyXpE4Vdyt+EVuxanzbhobTXzZUf+e8kubwM+CgBZIil\n6lEzG85yHyf2HnXZ2ypr152NM4Kw0TcG5YdYTsSrNLsR/FeaeGylO960LvOw\nSqpdgNJcg2IPPE5CrcX83GI8tLCdRmYXDxKFHHv4qoV/ZexvvjIaJUZPic/L\nS692tzTU4uBXbHZSLFcB8T4oXQuiMxK9r20tDYWtjgQ7o1rpymQfC0e0ad57\nxV9o\r\n=WBgY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzguDg87bIlL9g+MOY/Pqx4VihBlyBvIJp8tuGug0rQAiEA92k2i5mObaX7JpGbYQuFp6ECLvFOYOqhhBwrL1RrTDc="}]},"_npmUser":{"name":"autotelic","email":"info+npm@autotelic.com"},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastify-redirect-heroku_0.1.0_1627423599106_0.17047067271601324"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-27T22:06:39.036Z","0.1.0":"2021-07-27T22:06:39.311Z","modified":"2022-04-04T16:40:49.184Z"},"maintainers":[{"name":"autotelic","email":"info+npm@autotelic.com"}],"description":"Plugin for fastify to redirect away from a heroku domain","homepage":"https://github.com/autotelic/fastify-redirect-heroku#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/autotelic/fastify-redirect-heroku.git"},"author":{"name":"Autotelic Development Ltd","email":"info@autotelic.com"},"bugs":{"url":"https://github.com/autotelic/fastify-redirect-heroku/issues"},"license":"MIT","readme":"# Fastify Redirect Heroku\n\n> A Fastify plugin to redirect away from a Heroku domain to an authorized host.\n\n## Usage\n\n```sh\nnpm i @autotelic/fastify-redirect-heroku\n```\n\n```js\nconst redirectHeroku = require('@autotelic/fastify-redirect-heroku')\n\nmodule.exports = async function (fastify, options) {\n  fastify.register(redirectHeroku, {\n    authHost: 'https://example.com/',\n    herokuAppName: 'example-api'\n  })\n}\n```\n\n#### API\n\n### `Options`\n\n| Name | Status | Type | Default | Description |\n| ------- | :---: | :---: | :---: | --- |\n| `authHost` | **Required** | String | - | The authorized host to redirect to |\n| `herokuAppName` | **Required** | String | - | The name of the heroku app to redirect away from |\n","readmeFilename":"README.md"}