Qx (qx v0.2.0)
View SourceQx is a small collection of utilities and helpers for everyday Elixir work.
The functions live in focused modules:
Qx.String- presence checks, slugs and truncationQx.Map- deep merging, key conversion and pruningQx.Result- pipelines over{:ok, value}/{:error, reason}tuples
The most frequently reached-for helpers are also delegated here so that a
single alias Qx is often enough:
iex> Qx.slugify("Hello, World!")
"hello-world"
iex> Qx.deep_merge(%{a: %{b: 1}}, %{a: %{c: 2}})
%{a: %{b: 1, c: 2}}
Summary
Functions
See Qx.String.blank?/1.
See Qx.Map.compact/1.
See Qx.Map.compact/2.
See Qx.Map.deep_merge/2.
See Qx.String.present?/1.
See Qx.String.slugify/1.
See Qx.String.slugify/2.
See Qx.String.truncate/2.
See Qx.String.truncate/3.