{"id":24539607,"url":"https://github.com/enzoborgfrantz/url-shaper","last_synced_at":"2026-05-09T13:07:52.254Z","repository":{"id":57387641,"uuid":"102277401","full_name":"enzoborgfrantz/url-shaper","owner":"enzoborgfrantz","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-08T16:05:07.000Z","size":165,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T19:20:23.840Z","etag":null,"topics":["babel","es6","jest","rollup"],"latest_commit_sha":null,"homepage":null,"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/enzoborgfrantz.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}},"created_at":"2017-09-03T16:18:35.000Z","updated_at":"2017-09-08T15:24:46.000Z","dependencies_parsed_at":"2022-09-26T16:50:56.179Z","dependency_job_id":null,"html_url":"https://github.com/enzoborgfrantz/url-shaper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoborgfrantz%2Furl-shaper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoborgfrantz%2Furl-shaper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoborgfrantz%2Furl-shaper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzoborgfrantz%2Furl-shaper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enzoborgfrantz","download_url":"https://codeload.github.com/enzoborgfrantz/url-shaper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826785,"owners_count":20354220,"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":["babel","es6","jest","rollup"],"created_at":"2025-01-22T17:15:03.378Z","updated_at":"2026-05-09T13:07:47.221Z","avatar_url":"https://github.com/enzoborgfrantz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# url-shaper\nA library for simplifying url construction\n\n## Description\n\nThis module exports a function which expects two parameters:\n\n1. A string containing the url path\n2. An object containing query parameters\n\nOutputs a url made up of the concatenated path and the query parameters.\n\n## Notes:\n\n\u003e If the path provided does not contain a forward slash after the domain, this is automatically resolved\n\n\u003e Any keys or values in the query parameters object equal to: null, 'null', undefined, 'undefined' are ommitted.\n\n## Example \n\n```javascript\nimport urlShaper from 'url-shaper';\n\nconst path = 'http://www.test.com'; // the slash '/' after .com be automatically resolved\n\nconst queryParameters = {\n\tname: 'John',\n\tage: 16,\n\tregistered: true,\n\tnull: 1, // will be ommitted\n\tundefined: 2, // will be ommitted\n\tcity: null, // will be ommitted\n\tcountry: undefined, // will be ommitted\n};\n\nconst url = urlShaper(path, queryParameters);\t\t\n\n// url: 'http://www.test.com/?name=John\u0026age=16\u0026registered=true'\n```\n\n### [Code](https://github.com/enzoborgfrantz/url-shaper/blob/master/src/urlShaper.js)\n\n### [Tests](https://github.com/enzoborgfrantz/url-shaper/blob/master/test/urlShaper.test.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzoborgfrantz%2Furl-shaper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzoborgfrantz%2Furl-shaper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzoborgfrantz%2Furl-shaper/lists"}