# IP

[![pipeline status](](
[![Hippocratic License HL3-FULL](](

IP, IP, Ooray! Simple IP Address representations.

## Installation

If [available in Hex](, the package can be installed
by adding `ip` to your list of dependencies in `mix.exs`:

def deps do
    {:ip, "~> 2.0.0"}

## Usage

`ip` provides representations for IP addresses and subnets for Elixir with a bunch of helpful stuff tacked on the side.

    iex> ~i(

    iex> ~i(2001:db8::)
    #IP.Address<2001:db8:: DOCUMENTATION>

    iex> outside = ~i(2001:db8::/64)
    ...> inside  = IP.Prefix.eui_64!(outside, "60:f8:1d:ad:d8:90")
    ...> IP.Prefix.contains_address?(outside, inside)

Documentation can be generated with [ExDoc](
and published on [HexDocs]( Once published, the docs can
be found at [](

## License

This software is licensed under the terms of the
[HL3-FULL](, see the `` file included with
this package for the terms.

This license actively proscribes this software being used by and for some
industries, countries and activities.  If your usage of this software doesn't
comply with the terms of this license, then [contact me](
with the details of your use-case to organise the purchase of a license - the
cost of which may include a donation to a suitable charity or NGO.