ExUtils ⚡

Coverage Status Downloads Version License

Elixir utilities, helpers and shortcuts

ExUtils provides helper methods and utilities for a lot of different data types in Elixir that are not present in the Kernel yet. Head over to HexDocs for the full list of modules, functions and macros.

Installation

def deps do
  [{:ex_utils, "~> 1.0"}]
end

Configuration

Some utilities require specifying your OTP application in your config. Add the following to your config/config.exs:

config :ex_utils,
  otp_app: :your_app

Replace :your_app with your application's OTP app name.

Modules

ExUtils is organized in independent modules, each providing helpers for a single domain or subject type, following a pluralized naming strategy wherever possible. This is done so to avoid potential aliasing conflicts with Elixir standard library modules, which use singular names. E.g. It exports a ExUtils.Maps module with helpers that extend Elixir's built-in Map module.

A high level overview of each module is provided below. You can also view all docs at on HexDocs for the complete API.

Core Utils

Module
ExUtils.Configs
ExUtils.Files
ExUtils.Keywords
ExUtils.Lists
ExUtils.Maps
ExUtils.Numbers
ExUtils.Random
ExUtils.Runner
ExUtils.Terms
ExUtils.Typespecs
ExUtils.URLs

Module Utils

Module
ExUtils.Modules
ExUtils.Modules.Extend

Ecto Utils

These modules are available when the optional ecto dependency is installed.

Module
ExUtils.Ecto.Changesets
ExUtils.Ecto.Fragments

Contributing

License

This package is available as open source under the terms of the MIT License.