{"id":18000161,"url":"https://github.com/aguxez/pastry","last_synced_at":"2025-03-26T07:32:03.693Z","repository":{"id":62430294,"uuid":"117605440","full_name":"aguxez/pastry","owner":"aguxez","description":"Turn maps and keyword lists into query strings.","archived":false,"fork":false,"pushed_at":"2018-04-13T20:34:49.000Z","size":20,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T11:11:13.508Z","etag":null,"topics":["elixir","pastry","query-string-builder","url"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aguxez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-15T23:14:03.000Z","updated_at":"2021-05-31T00:33:36.000Z","dependencies_parsed_at":"2022-11-01T20:17:36.891Z","dependency_job_id":null,"html_url":"https://github.com/aguxez/pastry","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/aguxez%2Fpastry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguxez%2Fpastry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguxez%2Fpastry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aguxez%2Fpastry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aguxez","download_url":"https://codeload.github.com/aguxez/pastry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245611765,"owners_count":20643892,"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":["elixir","pastry","query-string-builder","url"],"created_at":"2024-10-29T23:09:56.453Z","updated_at":"2025-03-26T07:32:03.420Z","avatar_url":"https://github.com/aguxez.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pastry - Turn maps and keyword lists into query Strings.\n\n## Pastry is a [Quiche](http://github.com/chrismissal/quiche) fork in Elixir. [![Build Status](https://travis-ci.org/aguxez/pastry.svg?branch=master)](https://travis-ci.org/aguxez/pastry)\n\n### Install\n```elixir\n{:pastry, \"~\u003e 0.3.0\"}\n```\n\n### Usage\n```elixir\niex\u003e Pastry.to_query_string(%{param: ~w(this is a parameters list), words: \"Elixir is fun!\"})\n\"?param=this\u0026param=is\u0026param=a\u0026param=parameters\u0026param=list\u0026words=Elixir%20is%20fun!\"\n\nPastry.to_query_string([param: ~w(this is a parameters list), words: \"Elixir is fun!\"])\n\"?param=this\u0026param=is\u0026param=a\u0026param=parameters\u0026param=list\u0026words=Elixir%20is%20fun!\"\n```\n\n### You can pass options as to which type of case to use\n\n```elixir\n# use \"camel\" or \"pascal\"\niex\u003e Pastry.to_query_string([some_words: ~w(some list), text_word: \"Pascal\"], case: \"pascal\")\n\"?SomeWords=some\u0026SomeWords=list\u0026TextWord=Pascal\"\n...\niex\u003e Pastry.to_query_string(%{some_words: \"A word\"}, case: \"camel\")\n\"?someWords=A%20word\"\n```\n\n### And if passing case options is not enough\nYou can just pass an arity 1 function with the `:func` option\n\n```elixir\niex\u003e Pastry.to_query_string([text_message: \"some word\"], func: \u0026String.upcase/1)\n\"?TEXT_MESSAGE=some%20word\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faguxez%2Fpastry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faguxez%2Fpastry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faguxez%2Fpastry/lists"}