Skip to content

Finbits/casex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casex

CI

Simple case conversion for web applications. Easily decodes camelCase body payloads to snake_case and response payloads from camelCase to snake_case. Useful to maintain to expose your API in camelCase but keep internally the elixir naming conventions.

It leverages recase to provide case conversions without relying on the Macro module and easily integrates with plug-based applications.

Installation

The package can be installed by adding casex to your list of dependencies in mix.exs:

def deps do
  [
    {:casex, "~> 0.4.2"}
  ]
end

Usage

The complete docs can be found at https://hexdocs.pm/casex.

License

Copyright 2020 Finbits.

Casex source code is released under Apache 2 License.

Check LICENSE file for more information.