https://github.com/kenta-s/gungnir
https://github.com/kenta-s/gungnir
elixir elixir-library
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kenta-s/gungnir
- Owner: kenta-s
- Created: 2017-03-09T11:28:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-10T12:35:53.000Z (over 9 years ago)
- Last Synced: 2025-03-20T16:58:03.639Z (over 1 year ago)
- Topics: elixir, elixir-library
- Language: Elixir
- Size: 8.79 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gungnir
Gungnir gives you some useful functions to improve the verocity of your development.
The main idea is based on Ruby on Rails' Active Support.
## Examples
```elixir
your_string = "hello world"
Gungnir.String.present?(your_string)
# => true
Gungnir.String.blank?(your_string)
# => false
your_list = [1, 2, 3, nil, 5]
Gungnir.Enum.compact(your_list)
# => [1,2,3,5]
```
## Installation
The package can be installed by adding `gungnir` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:gungnir, "~> 0.1.0"}]
end
```
The docs can be found at [https://hexdocs.pm/gungnir](https://hexdocs.pm/gungnir).
## Contribution
Gungnir is at an early stage of development. Your PR is always welcome :)