{"id":15883460,"url":"https://github.com/0xch4z/query-str","last_synced_at":"2026-01-12T05:37:22.693Z","repository":{"id":57168367,"uuid":"96073165","full_name":"0xch4z/query-str","owner":"0xch4z","description":"A lightweight, independent micro-library for parsing/generating URL query strings.","archived":false,"fork":false,"pushed_at":"2019-05-29T06:16:13.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-22T08:22:18.922Z","etag":null,"topics":["javascript","json","parsing","query-string","url-parameters"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/query-str","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/0xch4z.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-07-03T05:25:54.000Z","updated_at":"2023-06-02T20:19:19.000Z","dependencies_parsed_at":"2022-09-01T02:11:50.731Z","dependency_job_id":null,"html_url":"https://github.com/0xch4z/query-str","commit_stats":null,"previous_names":["charliekenney23/query-str","charliekenney23/query-parse"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xch4z/query-str","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fquery-str","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fquery-str/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fquery-str/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fquery-str/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xch4z","download_url":"https://codeload.github.com/0xch4z/query-str/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xch4z%2Fquery-str/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28335221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["javascript","json","parsing","query-string","url-parameters"],"created_at":"2024-10-06T04:22:42.876Z","updated_at":"2026-01-12T05:37:22.678Z","avatar_url":"https://github.com/0xch4z.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003equery-str\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/travis/Charliekenney23/query-str.svg\" href=\"https://travis-ci.org/Charliekenney23/query-str\" alt=\"Travis Badge\" /\u003e\n  \u003cimg src=\"https://img.shields.io/codecov/c/github/Charliekenney23/query-str.svg\" href=\"https://codecov.io/gh/Charliekenney23/query-str\" alt=\"Codecov Badge\" /\u003e\n  \u003cimg src=\"https://api.codacy.com/project/badge/Grade/5b2bd8ad55194a5eaa2bb0537d5f6960\" href=\"https://www.codacy.com/app/charlesc.kenney/query-str?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Charliekenney23/query-str\u0026amp;utm_campaign=Badge_Grade\" alt=\"Codacy Badge\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/query-str.svg\" href=\"https://www.npmjs.com/package/query-str\" alt=\"NPM Version Badge\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/query-str.svg\" href=\"https://www.npmjs.com/package/query-str\" alt=\"NPM Downloads Badge\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003eParse and stringify URL query strings with ease. 🚀\u003c/p\u003e\n\n## Installation ⬇️\n```bash\n$ npm install --save query-str\n```\nAPI Usage 📝\n-----\n### Parse query string with URL\n```js\nconst qs = require('query-str');\n\nconst myURL = 'http://foo.bar/buzz?myBool=true\u0026myInt=2\u0026myFloat=3.3\u0026myString=fizz%20buzz';\nqs.parse(myURL);\n// =\u003e { myBool: true, myInt: 2, myFloat: 3.3, myString: 'fizz buzz' }\n```\n\n### Parse query string\n```js\nconst qs = require('query-str');\n\nconst myURL = 'isOpenSource=true\u0026isPassing=true\u0026codacyScore=10.0';\nqs.parse(myURL);\n// =\u003e { isOpenSource: true, isPassing: true, codacyScore: 10.0 }\n```\n\n### Stringify parameter object with URL\n```js\nconst qs = require('query-str');\n\nconst myURL = 'https://foo.bar/buzz';\n\nconst myParams = {\n  fin: false,\n  bazz: 22\n};\n\nqs.stringify(myParams, myURL);\n// =\u003e 'https://foo.bar/buzz?fin=false\u0026bazz=22'\n```\n\n### Stringify parameter object\n```js\nconst qs = require('query-str');\n\nconst myParams = {\n  myBool: false,\n  myInt: 6,\n  myFloat: 3.3,\n  myString: 'fin fun'\n};\n\nqs.stringify(myParams);\n// =\u003e '?myBool=false\u0026myInt=6\u0026myFloat=3.3\u0026myString=fin%20fun'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xch4z%2Fquery-str","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xch4z%2Fquery-str","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xch4z%2Fquery-str/lists"}