{"id":19566287,"url":"https://github.com/juliendargelos/open-url-js","last_synced_at":"2025-06-11T14:38:35.242Z","repository":{"id":57315143,"uuid":"112869667","full_name":"juliendargelos/open-url-js","owner":"juliendargelos","description":"Simply manage urls.","archived":false,"fork":false,"pushed_at":"2018-03-18T19:29:59.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T21:31:51.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliendargelos.png","metadata":{"files":{"readme":"README.hbs","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-02T19:15:58.000Z","updated_at":"2018-03-18T19:33:07.000Z","dependencies_parsed_at":"2022-09-12T15:02:03.935Z","dependency_job_id":null,"html_url":"https://github.com/juliendargelos/open-url-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Fopen-url-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Fopen-url-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Fopen-url-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Fopen-url-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliendargelos","download_url":"https://codeload.github.com/juliendargelos/open-url-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliendargelos%2Fopen-url-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259280875,"owners_count":22833467,"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":[],"created_at":"2024-11-11T05:30:48.864Z","updated_at":"2025-06-11T14:38:35.212Z","avatar_url":"https://github.com/juliendargelos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open URL JS 🔍\n[![npm version](https://badge.fury.io/js/open-url-js.svg)](https://badge.fury.io/js/open-url-js)\n[![Maintainability](https://api.codeclimate.com/v1/badges/27a140e4e8a692f19938/maintainability)](https://codeclimate.com/github/juliendargelos/open-url-js/maintainability)\n\nSimply manage urls.\n\n## Install\n\n```\nnpm install open-url-js\n```\n\n## Usage\n\n```javascript\nvar Url = require('open-url-js');\n\nvar url = new Url('https://www.myapp.com:3000/users/:id/#profile?user[lang]=fr');\nurl;\n// =\u003e Url {\n//      protocol: 'https',\n//      host: 'www.myapp.com',\n//      port: 3000,\n//      path: Pathname ['users', ':id', root: true],\n//      hash: 'profile',\n//      parameters: Parameters {\n//        user: Parameters {\n//          lang: fr\n//        }\n//      }\n//    }\n\nurl.path.id = 4;\nurl.string;\n// =\u003e 'https://www.myapp.com:3000/users/4/#profile?user[lang]=fr';\n\nurl.parameters = {\n  lang: 'en',\n  zone: 'United States'\n};\nurl.string;\n// =\u003e 'https://www.myapp.com:3000/users/4/#profile?lang=fr\u0026zone=United%20States';\n```\n\n{{\u003emain}}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendargelos%2Fopen-url-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliendargelos%2Fopen-url-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliendargelos%2Fopen-url-js/lists"}