{"id":13836126,"url":"https://github.com/fastify/fastify-url-data","last_synced_at":"2025-04-12T17:43:19.992Z","repository":{"id":26463001,"uuid":"108857583","full_name":"fastify/fastify-url-data","owner":"fastify","description":"A plugin to provide access to the raw URL components","archived":false,"fork":false,"pushed_at":"2025-03-07T19:11:00.000Z","size":150,"stargazers_count":58,"open_issues_count":0,"forks_count":16,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-27T19:17:43.224Z","etag":null,"topics":["fastify","fastify-plugin"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@fastify/url-data","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"fastify","open_collective":"fastify"}},"created_at":"2017-10-30T13:52:04.000Z","updated_at":"2025-03-07T19:10:07.000Z","dependencies_parsed_at":"2023-12-18T19:32:02.584Z","dependency_job_id":"8e68cdc5-c2ed-4048-865f-f4fff87f19f0","html_url":"https://github.com/fastify/fastify-url-data","commit_stats":{"total_commits":161,"total_committers":28,"mean_commits":5.75,"dds":0.6273291925465838,"last_synced_commit":"5cfef3f66b17fc2e6ff0379763b1f577ccc1d8c5"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-url-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-url-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-url-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-url-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastify","download_url":"https://codeload.github.com/fastify/fastify-url-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247070923,"owners_count":20878586,"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":["fastify","fastify-plugin"],"created_at":"2024-08-04T15:00:36.232Z","updated_at":"2025-04-03T20:10:56.880Z","avatar_url":"https://github.com/fastify.png","language":"JavaScript","readme":"# @fastify/url-data\n\n[![CI](https://github.com/fastify/fastify-url-data/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/fastify-url-data/actions/workflows/ci.yml)\n[![NPM version](https://img.shields.io/npm/v/@fastify/url-data.svg?style=flat)](https://www.npmjs.com/package/@fastify/url-data)\n[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)\n\nA plugin for [Fastify](https://fastify.dev/) that adds support for getting raw\nURL information from the request.\n\n## Install\n```\nnpm i @fastify/url-data\n```\n\n### Compatibility\n| Plugin version | Fastify version |\n| ---------------|-----------------|\n| `\u003e=6.x`        | `^5.x`          |\n| `^5.x`         | `^4.x`          |\n| `\u003e=3.x \u003c5.x`   | `^3.x`          |\n| `^2.x`         | `^2.x`          |\n| `^2.x`         | `^1.x`          |\n\n\nPlease note that if a Fastify version is out of support, then so are the corresponding versions of this plugin\nin the table above.\nSee [Fastify's LTS policy](https://github.com/fastify/fastify/blob/main/docs/Reference/LTS.md) for more details.\n\n## Example\n\n```js\nconst fastify = require('fastify')()\n\nfastify.register(require('@fastify/url-data'))\n\nfastify.get('/foo', (req, reply) =\u003e {\n  const urlData = req.urlData()\n  req.log.info(urlData.path) // '/foo'\n  req.log.info(urlData.query) // 'a=b\u0026c=d'\n  req.log.info(urlData.host) // '127.0.0.1'\n  req.log.info(urlData.port) // 8080\n\n  // if you just need single data:\n  req.log.info(req.urlData('path')) // '/foo'\n\n  reply.send({hello: 'world'})\n})\n\n// GET: 'http://127.0.0.1:8080/foo?a=b\u0026c=d\n```\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","funding_links":["https://github.com/sponsors/fastify","https://opencollective.com/fastify"],"categories":["\u003ch2 align=\"center\"\u003eAwesome Fastify\u003c/h2\u003e"],"sub_categories":["\u003ch2 align=\"center\"\u003eEcosystem\u003c/h2\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastify%2Ffastify-url-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastify%2Ffastify-url-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastify%2Ffastify-url-data/lists"}