{"id":22196699,"url":"https://github.com/druids/ring-middleware-case-format","last_synced_at":"2025-03-24T22:40:24.027Z","repository":{"id":62434517,"uuid":"133645799","full_name":"druids/ring-middleware-case-format","owner":"druids","description":"A Ring's middleware that converts a request into X case and a response into a Y case","archived":false,"fork":false,"pushed_at":"2018-11-28T18:10:42.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T23:04:25.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/druids.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-16T09:55:06.000Z","updated_at":"2019-08-22T16:04:54.000Z","dependencies_parsed_at":"2022-11-01T21:15:45.847Z","dependency_job_id":null,"html_url":"https://github.com/druids/ring-middleware-case-format","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/druids%2Fring-middleware-case-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-middleware-case-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-middleware-case-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fring-middleware-case-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/ring-middleware-case-format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366207,"owners_count":20603438,"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-02T14:16:10.145Z","updated_at":"2025-03-24T22:40:23.998Z","avatar_url":"https://github.com/druids.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"ring-middleware-case-format\n===========================\n\n\nA Ring's middleware that converts a request into X case and a response into a Y case\n\n[![CircleCI](https://circleci.com/gh/druids/ring-middleware-case-format.svg?style=svg)](https://circleci.com/gh/druids/ring-middleware-case-format)\n[![Dependencies Status](https://jarkeeper.com/druids/ring-middleware-case-format/status.png)](https://jarkeeper.com/druids/ring-middleware-case-format)\n[![License](https://img.shields.io/badge/MIT-Clause-blue.svg)](https://opensource.org/licenses/MIT)\n\n\nLeiningen/Boot\n--------------\n\n```clojure\n[ring-middleware-case-format \"0.2.1\"]\n```\n\nDocumentation\n-------------\n\n`wrap-\u003ekebab-\u003esnake` use as a normal middleware e.g.:\n\n```clojure\n(require '[ring.middleware.case-format :refer [wrap-\u003ekebab-\u003esnake]])\n(wrap-\u003ekebab-\u003esnake\n  (fn [request]\n    {:body {:snake-case true}}))\n```\n\n`wrap-\u003ekebab-\u003esnake` converts all following keys from `request` into kebab-case:\n  - `:params`\n  - `:body-params`\n  - `:form-params`\n  - `:query-params`\n\nand is converts a response's `:body` into snake\\_case.\n\nThe keys will stay in their type (e.g. if a key is in keyword, it will be converted in a proper case and back into\n a keyword).\n\nThe namespace `ring.middleware.case-format` also exposed public functions `-\u003ecamel`, `-\u003ekebab` and `-\u003esnake`.\n\nContribution\n------------\n\n### Conventions\n\n* Please follow coding style defined by [`.editorconfig`](http://editorconfig.org)\n and [The Clojure Style Guide](https://github.com/bbatsov/clojure-style-guide)\n* Write [good commit messages](https://chris.beams.io/posts/git-commit/)\n and provide an issue ID in a commit message prefixed by `#`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fring-middleware-case-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Fring-middleware-case-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fring-middleware-case-format/lists"}