{"id":24977893,"url":"https://github.com/letscooee/url-builder","last_synced_at":"2025-04-11T15:06:37.775Z","repository":{"id":36795867,"uuid":"230437575","full_name":"letscooee/url-builder","owner":"letscooee","description":"Very simple \u0026 lightweight TypeScript library to provide utility for building or parsing the URLs ","archived":false,"fork":false,"pushed_at":"2024-06-19T06:52:48.000Z","size":192,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T11:11:31.838Z","etag":null,"topics":["browser","typescript","typescript-library","url","url-parser"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/letscooee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-27T12:11:00.000Z","updated_at":"2023-09-08T18:01:40.000Z","dependencies_parsed_at":"2022-08-08T17:15:33.104Z","dependency_job_id":null,"html_url":"https://github.com/letscooee/url-builder","commit_stats":null,"previous_names":["wizpanda/url-builder"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscooee%2Furl-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscooee%2Furl-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscooee%2Furl-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letscooee%2Furl-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letscooee","download_url":"https://codeload.github.com/letscooee/url-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429078,"owners_count":21101782,"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":["browser","typescript","typescript-library","url","url-parser"],"created_at":"2025-02-03T23:42:00.422Z","updated_at":"2025-04-11T15:06:37.752Z","avatar_url":"https://github.com/letscooee.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# URL Builder\n\n[![npm version](https://badge.fury.io/js/%40letscooee%2Furl-builder.svg)](https://badge.fury.io/js/%40letscooee%2Furl-builder)\n![](https://github.com/letscooee/url-builder/workflows/Build%20And%20Test%20Cases/badge.svg)\n\nA simple wrapper for TypeScript to build \u0026 parse a URL.\n\n## Installation\n\n```shell script\nnpm i @letscooee/url-builder\n```\n\n## Usage\n\n```typescript\nimport {URLBuilder} from '@letscooee/url-builder';\n\nconst urlBuilder = new URLBuilder('https://example.com/try?foo=bar\u0026age=20');\nurlBuilder.setQueryParam('foo', 'bar-new');\nurlBuilder.appendQueryParam('name', 'Jon');\n\nconsole.log(urlBuilder.toString() === 'https://example.com/try?foo=bar-new\u0026age=20\u0026name=Jon');\nconsole.log(urlBuilder.getQueryParam('foo') === 'bar-new');\n\nurlBuilder.setPath('/save');\nurlBuilder.setQueryString('name=Jon\u0026country=India');\n\nconsole.log(urlBuilder.toString() === 'https://example.com/save?name=Jon\u0026country=India');\n\nurlBuilder.clearQueryParams();\nconsole.log(urlBuilder.toString() === 'https://example.com/save');\n```\n\n## Release\n\n```shell script\nnpm publish --access public\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletscooee%2Furl-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletscooee%2Furl-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletscooee%2Furl-builder/lists"}