{"id":21381091,"url":"https://github.com/tacheometry/rbxts-neturl","last_synced_at":"2025-03-16T10:43:33.387Z","repository":{"id":183720944,"uuid":"637970264","full_name":"tacheometry/rbxts-neturl","owner":"tacheometry","description":"roblox-ts typings for NetUrl","archived":false,"fork":false,"pushed_at":"2023-05-08T20:10:00.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T23:48:32.013Z","etag":null,"topics":["roblox-ts"],"latest_commit_sha":null,"homepage":"https://npmjs.com/@rbxts/neturl","language":"Lua","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/tacheometry.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}},"created_at":"2023-05-08T19:59:01.000Z","updated_at":"2023-05-08T20:08:14.000Z","dependencies_parsed_at":"2023-07-25T15:18:40.462Z","dependency_job_id":null,"html_url":"https://github.com/tacheometry/rbxts-neturl","commit_stats":null,"previous_names":["tacheometry/rbxts-neturl"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-neturl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-neturl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-neturl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tacheometry%2Frbxts-neturl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tacheometry","download_url":"https://codeload.github.com/tacheometry/rbxts-neturl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243857996,"owners_count":20359259,"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":["roblox-ts"],"created_at":"2024-11-22T10:44:15.645Z","updated_at":"2025-03-16T10:43:33.358Z","avatar_url":"https://github.com/tacheometry.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🌐 NetUrl 🌐\u003c/h1\u003e\n\nroblox-ts typings for the NetUrl library, a URL and Query string parser, builder, and normalizer for Lua. Some useful links:\n\n-   [NetUrl's repository](https://github.com/golgote/neturl/tree/master)\n-   [This package's repository](https://github.com/tacheometry/rbxts-neturl)\n\n## Installation\n\n[![NPM](https://nodei.co/npm/@rbxts/neturl.png)](https://npmjs.org/package/@rbxts/neturl)\n\nRun `npm i @rbxts/neturl` in your project directory.\n\n## Usage\n\nTo import:\n\n```ts\nimport NetUrl from \"@rbxts/neturl\";\n```\n\nBelow are some usage examples adapted from the NetUrl repository:\n\n### URL parser\n\n```ts\nconst u = NetUrl.parse(\"http://www.example.com/test/?start=10\");\n\nprint(u.scheme); // http\nprint(u.host); // www.example.com\nprint(u.path); // /test/\n```\n\n### Querystring parser\n\n```ts\nconst query = NetUrl.parseQuery(\"a=123\u0026b=456\");\n\nprint(query); // a=123\u0026b=456\nprint(query.get(\"a\")); // \"123\"\nprint(query.get(\"b\")); // \"456\"\n```\n\n```ts\n// Note: replace the type if using brackets in the query string:\nconst query = NetUrl.parseQuery\u003cstring | string[]\u003e(\"first=abc\u0026a[]=123\u0026a[]=false\u0026b[]=str\u0026c[]=3.5\u0026a[]=last\");\n\nprint(query); // a[1]=123\u0026a[2]=false\u0026a[3]=last\u0026b[1]=str\u0026c[1]=3.5\u0026first=abc\nprint(query.get(\"a\")); // [ \"3.5\" ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacheometry%2Frbxts-neturl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacheometry%2Frbxts-neturl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacheometry%2Frbxts-neturl/lists"}