{"id":17937761,"url":"https://github.com/alexcambose/queryfy","last_synced_at":"2025-10-30T23:32:45.276Z","repository":{"id":57332356,"uuid":"100488565","full_name":"alexcambose/queryfy","owner":"alexcambose","description":"Utility to create query strings from objects","archived":false,"fork":false,"pushed_at":"2018-11-27T12:19:50.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T05:35:36.139Z","etag":null,"topics":["javascript","object","parameters","querystring","request","string","web"],"latest_commit_sha":null,"homepage":"","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/alexcambose.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-08-16T12:47:50.000Z","updated_at":"2023-08-18T15:18:23.000Z","dependencies_parsed_at":"2022-08-31T00:01:22.193Z","dependency_job_id":null,"html_url":"https://github.com/alexcambose/queryfy","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/alexcambose%2Fqueryfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Fqueryfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Fqueryfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcambose%2Fqueryfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcambose","download_url":"https://codeload.github.com/alexcambose/queryfy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998217,"owners_count":20866696,"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":["javascript","object","parameters","querystring","request","string","web"],"created_at":"2024-10-28T23:07:32.064Z","updated_at":"2025-10-30T23:32:45.181Z","avatar_url":"https://github.com/alexcambose.png","language":"JavaScript","readme":"# queryfy\n[![Build Status](https://travis-ci.org/alexcambose/queryfy.svg?branch=master)](https://travis-ci.org/alexcambose/queryfy)\n## Install\n```\nbower install queryfy\n```\n```html\n\u003cscript src=\"bower_components/queryfy/index.js\"\u003e\u003c/script\u003e\n```\nor\n[npm](https://www.npmjs.com/package/queryfy)\n```\nnpm install -S queryfy\n```\n## Usage\n\n### Standard\n\n```js\nconst q = require('queryfy');\n\nconst params = {\n  param1: 'This is param1',\n  param2: 'This is param2'\n};\n\nconst path = 'https://something.com/';\n\nconsole.log(q.queryfy(path, params));\n// https://something.com/?param1=This%20is%20param1\u0026param2=This%20is%20param2\n```\n\nor you can specify only the first argument with the query object\n\n```js\nconst params = {\n  param1: 'This is param1',\n  param2: 'This is param2'\n};\nconsole.log(q.queryfy(params));\n// param1=This%20is%20param1\u0026param2=This%20is%20param2\n```\n\n### Reversed\n\n```js\nconst q = require('queryfy');\n\nconst path = 'https://something.com/?param1=This%20is%20param1\u0026param2=This%20is%20param2';\n\nconsole.log(q.deQueryfy(path));\n// { param1: 'This is param1', param2: 'This is param2' }\n```\nit also supports only the query string with or without `?`\n\n```js\nconsole.log(q.deQueryfy('param1=This%20is%20param1\u0026param2=This%20is%20param2'));\n// { param1: 'This is param1', param2: 'This is param2' }\n\nconsole.log(q.deQueryfy('?param1=This%20is%20param1\u0026param2=This%20is%20param2'));\n// { param1: 'This is param1', param2: 'This is param2' }\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcambose%2Fqueryfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcambose%2Fqueryfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcambose%2Fqueryfy/lists"}