proper_case v1.3.1 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
camel_case(key)
Converts an atom to a camelCase
string
camel_case(key, mode)
Converts a string to camelCase
snake_case(val)
Converts a string to snake_case
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.
to_camel_case(map, mode)
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.