proper_case v1.3.0 ProperCase

An Elixir library that converts keys in maps between snake_case and camel_case

Link to this section Summary

Functions

Converts an atom to a camelCase string

Converts a string to camelCase

Converts a string to snake_case

Converts all the keys in a map to camelCase if mode is :lower or CamleCase if mode is :upper. If the map is a struct with no Enumerable implementation, the struct is considered to be a single value

Converts all the keys in a map to snake_case. If the map is a struct with no Enumerable implementation, the struct is considered to be a single value

Link to this section Functions

Link to this function camel_case(key)

Converts an atom to a camelCase string

Link to this function camel_case(key, mode)

Converts a string to camelCase

Link to this function snake_case(val)

Converts a string to snake_case

Link to this function to_camel_case(any)

Converts all the keys in a map to camelCase if mode is :lower or CamleCase if mode is :upper. If the map is a struct with no Enumerable implementation, the struct is considered to be a single value.

Link to this function to_camel_case(map, mode)
Link to this function to_snake_case(map)

Converts all the keys in a map to snake_case. If the map is a struct with no Enumerable implementation, the struct is considered to be a single value.