https://github.com/am-kantox/sweetener
Set of nifty functions I missed in Elixir core.
https://github.com/am-kantox/sweetener
elixir elixir-lang elixir-package
Last synced: 23 days ago
JSON representation
Set of nifty functions I missed in Elixir core.
- Host: GitHub
- URL: https://github.com/am-kantox/sweetener
- Owner: am-kantox
- License: mit
- Created: 2017-10-17T12:47:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T13:01:33.000Z (over 7 years ago)
- Last Synced: 2025-03-12T06:11:38.403Z (about 2 months ago)
- Topics: elixir, elixir-lang, elixir-package
- Language: Elixir
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sweetener
[](https://travis-ci.org/am-kantox/sweetener) **Set of nifty functions I missed in Elixir core.**
Helpers provided so far:
- `tap` an analogue of ruby’s `tap` method. It’s useful for more concise
logging/external calls without intermediate local variables:```elixir
use Sweetenertap Supervisor.start_link(children, opts) do
IO.inspect Supervisor.count_children(_())
#=> %{active: 1, specs: 1, supervisors: 0, workers: 1}
end #=> returning {:ok, pid} tuple
```## Installation
Add `sweetener` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:sweetener, "~> 0.1.0"}
]
end
```Documentation can be found at [https://hexdocs.pm/sweetener](https://hexdocs.pm/sweetener).