https://github.com/shavit/elixir-zodiac
Zodiac sign compatibility library
https://github.com/shavit/elixir-zodiac
Last synced: 3 months ago
JSON representation
Zodiac sign compatibility library
- Host: GitHub
- URL: https://github.com/shavit/elixir-zodiac
- Owner: shavit
- Created: 2018-11-06T07:54:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-25T19:12:15.000Z (over 6 years ago)
- Last Synced: 2025-01-23T23:43:52.054Z (5 months ago)
- Language: Elixir
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zodiac
[](https://travis-ci.org/shavit/elixir-zodiac)
Compatibility between Zodiac Signs. [Documentation](https://hex.pm/packages/zodiac)
## Installation
The package can be installed by adding `zodiac` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:zodiac, "~> 0.1.0"}
]
end
```## Usage
Find compatibility for Leo
```elixir
iex> Sign.compatibility :leo
[:sagittarius, :libra, :gemini, :aries]
```Find compatibility by date
```elixir
iex> Zodiac.for_date ~D(1970-08-22)
%Sign{
name: :leo,
compatible_with: [:sagittarius, :libra, :gemini, :aries]
}
```