{"id":23169106,"url":"https://github.com/proprietary/urip.js","last_synced_at":"2025-04-04T22:45:37.943Z","repository":{"id":129079016,"uuid":"50407509","full_name":"proprietary/UriP.js","owner":"proprietary","description":"utility library for query strings and URIs","archived":false,"fork":false,"pushed_at":"2016-01-26T06:13:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T07:24:35.408Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/proprietary.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":"2016-01-26T06:05:50.000Z","updated_at":"2016-01-26T06:12:17.000Z","dependencies_parsed_at":"2023-03-28T23:37:00.394Z","dependency_job_id":null,"html_url":"https://github.com/proprietary/UriP.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/proprietary%2FUriP.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2FUriP.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2FUriP.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2FUriP.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proprietary","download_url":"https://codeload.github.com/proprietary/UriP.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261580,"owners_count":20910107,"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-12-18T03:15:25.048Z","updated_at":"2025-04-04T22:45:37.921Z","avatar_url":"https://github.com/proprietary.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"UriP\n----\n\n# Synopsis\n\nSimple JS library to work with query strings and URIs\n\n# Usage\n\n## Build query string\n\n```javascript\nconst queryObj = {\n  meaningOfLife: 42,\n  shit: 'brix',\n  selectAll: true\n};\nconst queryStr = UriP.serializeQuery(queryObj)\nconsole.log(JSON.stringify(queryStr))\n// { meaningOfLife: '42', shit: 'brix', selectAll: 'true' }\n```\n\n## Decode URI with query string\n\n```javascript\nconst complexUri = 'http://search.lycos.com/web/?q=wow+remember+this+shit\u0026keyvol=0084afc23d680d2c5ff1'\nconst readUri = UriP.read(complexUri)\nconsole.log(JSON.stringify(readUri))\n```\n\n## Decode just the query string\n\n```javascript\nconst uri = '?q=wow+remember+this+shit\u0026keyvol=0084afc23d680d2c5ff1'\nconst queryObj = UriP.readQuery(uri)\nconsole.log(JSON.stringify(queryObj)) // { q: 'wow remember this shit', keyvol: '0084afc23d680d2c5ff1' }\n```\n\n# TODO\n\n## Compile URI with query string\n\n```javascript\nconst UriP = require('UriP')\n\nvar query = {\n  account: 243922,\n  listAll: true,\n  limit: 15\n}\n\nvar reqUri = UriP.build(\"http://localhost:3030\", query)\nconsole.log(reqUri)\n// http://localhost:3030/?account=243922\u0026listAll=true\u0026limit=15\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproprietary%2Furip.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproprietary%2Furip.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproprietary%2Furip.js/lists"}