{"id":26741062,"url":"https://github.com/aaronhayes/qstring","last_synced_at":"2025-03-28T05:29:32.351Z","repository":{"id":57093991,"uuid":"215784884","full_name":"aaronhayes/qstring","owner":"aaronhayes","description":"The easiest way to build query strings","archived":false,"fork":false,"pushed_at":"2019-11-14T01:22:10.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T19:46:39.422Z","etag":null,"topics":["qs","query-string","query-string-builder","querystring","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/aaronhayes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-17T12:17:44.000Z","updated_at":"2019-11-14T01:22:12.000Z","dependencies_parsed_at":"2022-08-22T20:40:49.258Z","dependency_job_id":null,"html_url":"https://github.com/aaronhayes/qstring","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fqstring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fqstring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fqstring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronhayes%2Fqstring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronhayes","download_url":"https://codeload.github.com/aaronhayes/qstring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978199,"owners_count":20703675,"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":["qs","query-string","query-string-builder","querystring","typescript"],"created_at":"2025-03-28T05:29:31.728Z","updated_at":"2025-03-28T05:29:32.325Z","avatar_url":"https://github.com/aaronhayes.png","language":"TypeScript","readme":"# qstring\n\n[![npm (scoped)](https://img.shields.io/npm/v/@aaronhayes/qstring?style=flat-square)](https://www.npmjs.com/package/@aaronhayes/qstring)\n![Build](https://img.shields.io/travis/aaronhayes/qstring?style=flat-square)\n![Codecov](https://img.shields.io/codecov/c/github/aaronhayes/qstring?style=flat-square)\n[![Bundle Size](https://img.shields.io/bundlephobia/min/@aaronhayes/qstring?style=flat-square)](https://bundlephobia.com/result?p=@aaronhayes/qstring@1.0.1)\n![License](https://img.shields.io/npm/l/@aaronhayes/qstring?style=flat-square)\n\nThe easiest way to build querystrings. A lightweight, easy to use way to build full urls including the querystring. Less than [400B Minified \u0026 GZipped](https://bundlephobia.com/result?p=@aaronhayes/qstring@1.0.1)!\n\nThe popular [query-string](https://github.com/sindresorhus/query-string) only handles the part querystring part, so there is another step of building the final url. The API inspired by JedWatson's [Classnames](https://github.com/JedWatson/classnames) Package.\n\n## Install\n\n```\n$ npm install --save @aaronhayes/qstring\n```\n\n```\n$ yarn add @aaronhayes/qstring\n```\n\n## Usage\n\n```TypeScript\nimport qstring, { ArrayFormat } from '@aaronhayes/qstring';\n\nconst qs = qstring('https://myapi.com', {\n    foo: 'bar',\n    foobar: true,\n    foo3: null,\n    foo4: undefined\n});\n\nconsole.log(qs);\n// https://myapi.com?foo=bar\u0026foobar=true\n\nconst qs = qstring(\n    'https://myapi.com',\n    {\n        foo: ['hello', 'world'],\n        cat: 'dog'\n    }\n);\n\nconsole.log(qs);\n// https://myapi.com?foo=hello\u0026foo=world\u0026cat=dog\n\nconst qs = qstring(\n    'https://myapi.com',\n    {\n        foo: ['hello', 'world'],\n        cat: 'dog'\n    },\n    ArrayFormat.comma\n);\n\nconsole.log(qs);\n// https://myapi.com?foo=hello,world\u0026cat=dog\n\n```\n\n## See Also\n\n- [query-string](https://github.com/sindresorhus/query-string)\n- [Classnames](https://github.com/JedWatson/classnames)\n- [Typescript Starter](https://github.com/bitjson/typescript-starter)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronhayes%2Fqstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronhayes%2Fqstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronhayes%2Fqstring/lists"}