{"id":37261699,"url":"https://github.com/global-source/javascript_uri_query","last_synced_at":"2026-01-15T23:12:14.813Z","repository":{"id":62511255,"uuid":"80266270","full_name":"global-source/javascript_uri_query","owner":"global-source","description":"Core Javascript Library for URL Operations.","archived":false,"fork":false,"pushed_at":"2020-07-24T11:18:54.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T02:38:04.794Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/global-source.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-01-28T04:26:24.000Z","updated_at":"2020-07-24T11:18:56.000Z","dependencies_parsed_at":"2022-11-02T12:47:22.208Z","dependency_job_id":null,"html_url":"https://github.com/global-source/javascript_uri_query","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/global-source/javascript_uri_query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-source%2Fjavascript_uri_query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-source%2Fjavascript_uri_query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-source%2Fjavascript_uri_query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-source%2Fjavascript_uri_query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/global-source","download_url":"https://codeload.github.com/global-source/javascript_uri_query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/global-source%2Fjavascript_uri_query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-15T23:12:14.320Z","updated_at":"2026-01-15T23:12:14.807Z","avatar_url":"https://github.com/global-source.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript URI Query\nCore Javascript Library for Powerful URL level Operations ADD|UPDATE|DELETE and much more...\n\n[![Packagist](https://img.shields.io/badge/v.2.0-Build-green.svg)](https://github.com/global-source/javascript_uri_query/releases/tag/v.2)\n[![Packagist](https://img.shields.io/badge/ES6-Support-blue.svg)](https://github.com/global-source/javascript_uri_query)\n\n___\n\nOne library to perform most of the **URI** operations. \nSuch as,\n \n \n Action       | Method                            | Description |\n -------------|-----------------------------------|-------------|\n  Add         | URI.addNew(key, val)              | To add new param to URL. |\n  Bulk Add    | URI.add([{key1 : val1},{key2: val2}])| To add multiple params to URL.|\n  Append      | URI.append(key, val)              | To add new item to the existing value. |\n  Update Value      | URI.add([{key: val}])            | To perform update with add function. |\n  Delete      | URI.remove(key)                | To remove param from URL. |\n  Bulk Delete | URI.remove([key1, key2])      | To remove multiple param from URL. |\n  Delete All  | URI.removeAll()                   | To remove all param in the URL. |\n  Clear       | URI.clear()                       | TO clear the URL history. |\n  Update      | URI.update()                      | To update URI status. |\n  Get         | URI.get(key)                   | To get value of a param. |\n\n\n## Installation\n\nInclude the URI library to project by using,\n\n```html\n\n    \u003cscript src=\"uri_helper.min.js\"\u003e\u003c/script\u003e\n```    \n\nFor **ES6**:\n\n```html\n\n    \u003cscript src=\"uri_helper_es6.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n     let URI = new _URI(); \n    \u003c/script\u003e\n``` \n    \n## Methods\n  \n  ### getAll()\n  \n  To get list of URI params as Object.    \n    \n```javascript\n    \n           URI.getAll();    \n        \n        // URL : http://domain.com/?type=my-ticket\u0026page=1\u0026limit=5\n        \n        // Output : [\"type=myTicket\", \"page=1\", \"limit=5\"]\n        \n```\n        \n\n### get()\n  \nTo get value of the param from URI.\n        \n```javascript\n\n           URI.get('type');\n        \n        // URI : http://domain.com/?type=myTicket\u0026page=2\u0026limit=5\n        \n        // OUT : 'myTicket'\n ```\n                \n### addNew()\n  \nTo add single param to the URI. If item already exists, then value get updated.    \n       \n```javascript \n   \n           URI.add('page', 1);\n        \n        // Before URL : http://domain.com/?type=my-ticket\n        \n        // After URL : http://domain.com/?type=my-ticket\u0026page=1\n        \n```\n        \n### add()\n  \nTo add list of params to the URI. If item already exists, then value get updated.    \n       \n```javascript \n   \n           URI.add([{'page': 1}, {'limit': 5}]);\n        \n        // Before URL : http://domain.com/?type=my-ticket\n        \n        // After URL : http://domain.com/?type=my-ticket\u0026page=1\u0026limit=5\n        \n```\n        \n### append()\n  \nTo append value to the param in the URI.   \n       \n```javascript \n   \n           URI.append(name, bala);\n        \n        // Before URL : http://domain.com/?name=shankar\n        \n        // After URL : http://domain.com/?name=shankar,bala\n        \n```\n\n### remove()\n  \nTo remove list of param from the URI.\n      \n```javascript\n  \n           URI.remove(['page','limit']);   // For Bulk.\n           URI.remove('type');             // For Single.   \n           URI.remove('id','55')       // For Single Value.\n        \n        // Before URL : http://domain.com/?type=my-ticket\u0026page=1\u0026limit=5\n        \n        // After URL : http://domain.com/?\n        \n        // For Single Value:\n        // Before URL : http://domain.com/?id=45,23,55,34\n        \n        // After URL : http://domain.com/?id=45,23,34\n```        \n     \n### removeAll()\n  \nTo remove all param in the URI.\n       \n```javascript\n   \n           URI.removeAll();\n        \n        // Before URI : http://domain.com/?type=my-ticket\u0026page=2\u0026limit=5\n        \n        // After URI : http://domain.com/?\n```        \n     \n### prevPage()\n    \nTo go back to previous page by update the URI.\n       \n```javascript\n   \n           URI.prevPage();\n        \n        // Before URL : http://domain.com/?type=my-ticket\u0026page=2\u0026limit=5\n        \n        // After URL : http://domain.com/?type=my-ticket\u0026page=1\u0026limit=5\n```        \n        \n### nextPage()\n  \nTo move to next page by update the URI.\n        \n```javascript\n   \n           URI.nextPage();\n        \n        // Before URL : http://domain.com/?type=my-ticket\u0026page=1\u0026limit=5\n        \n        // After URL : http://domain.com/?type=my-ticket\u0026page=2\u0026limit=5\n        \n```\n\n### isParamExists()\n  \nTo check the param is exist in URI or Not.\n        \n```javascript\n        \n           URI.isParamExists('page');        \n           URI.isParamExists('newPage');\n        \n        // URL : http://domain.com/?type=my-ticket\u0026page=2\u0026limit=5\n        \n        // OUT 1 : true\n        // OUT 2 : false\n       \n```        \n        \n# License \n   \n   MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobal-source%2Fjavascript_uri_query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobal-source%2Fjavascript_uri_query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobal-source%2Fjavascript_uri_query/lists"}