{"id":26781691,"url":"https://github.com/walkr/lib_cleanex","last_synced_at":"2025-03-29T08:17:32.540Z","repository":{"id":57515913,"uuid":"139916697","full_name":"walkr/lib_cleanex","owner":"walkr","description":"Clean up your Elixir terms.","archived":false,"fork":false,"pushed_at":"2019-09-25T01:52:32.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T21:51:13.964Z","etag":null,"topics":["cleanup","elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/walkr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-06T01:10:03.000Z","updated_at":"2019-09-25T01:52:15.000Z","dependencies_parsed_at":"2022-08-28T16:51:31.169Z","dependency_job_id":null,"html_url":"https://github.com/walkr/lib_cleanex","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Flib_cleanex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Flib_cleanex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Flib_cleanex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walkr%2Flib_cleanex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walkr","download_url":"https://codeload.github.com/walkr/lib_cleanex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156411,"owners_count":20732397,"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":["cleanup","elixir"],"created_at":"2025-03-29T08:17:31.858Z","updated_at":"2025-03-29T08:17:32.524Z","avatar_url":"https://github.com/walkr.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cleanex\n\nClean up your Elixir terms.\n\nBy default it cleans strings (or any string values found inside maps, lists, keyword lists) by trimming ends, replacing double+ spaces, removing null-bytes; useful when working with user input.\n\n\n### Installation\n\n```elixir\ndef deps do\n  [\n    {:lib_cleanex, \"~\u003e 0.3.0\"}\n  ]\nend\n```\n\n\n### Usage\n\nAs function\n\n```elixir\niex\u003e Cleanex.clean(\" hello   world \")\n\"hello world\"\n\niex\u003e Cleanex.clean(%{greeting: \"  hello   world  \"})\n%{greeting: \"hello world\"}\n\niex\u003e Cleanex.clean {\" k \", \" v \"}\n{\"k\", \"v\"}\n```\n\nAs plug for cleaning `conn.params`\n\n```elixir\npipeline :api do\n  ...\n  plug Cleanex.Plugs.ParamsCleaner\n  ...\nend\n```\n\n#### Plug Options\n\n`[strict: bool]` -- when `strict` is set to `false`, inner whitespace\nwon't be touched (default `true`)\n\n\n### Extend\n\nTo extend just implement `Cleanex.Cleanable` protocol for your own types.\n\nMIT Licensed","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalkr%2Flib_cleanex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalkr%2Flib_cleanex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalkr%2Flib_cleanex/lists"}