Skip to content

Common utilities used in Our Very Own Elixir projects.

License

Notifications You must be signed in to change notification settings

ourveryown/ovo-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hex.pm Build Status Coverage Status

OVO Utils

Common utilities used in Our Very Own Elixir projects.

Installation

Add {:ovo_utils, "~> 0.1.0"} to your deps in mix.exs and run mix deps.get

Documentation

Full documentation can be found at HexDocs.

Utility Functions

Concurrent Tasks

  • populate_map_with_concurrent_functions(functions, timeout) - Concurrently executes functions and returns the results in a map.

Maps

  • transform_keys(map, transformation) - Applies a transformation function on map keys.
  • atomise_string_keys(map) - Converts string keys in maps to atoms.
  • stringify_atom_keys(map) - Converts all string keys in a map to atom keys.
  • camelize_string_keys(map) - Converts all string keys in a map to camel case.
  • snakify_string_keys(map) - Converts all string keys in a map to to snake case.

Miscellaneous

  • apply_on_ok(tuple, function) - Applies a function to a value inside an {:ok | :error, value} tuple if atom is :ok, otherwise returns the tuple without applying the function.

About

Common utilities used in Our Very Own Elixir projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages