# Erl

A URL parsing library for ELM

## Parse

Given a url like:

```
http://sam:pass@api.example.com:3000/products/kids#toys/1?color=red&age=10
```

This will be parsed into an Elm record:

```
{
  protocol: "http",
  username: "sam",
  password: "pass",
  host: ["api", "example", "com"],
  port': 3000,
  path: ["products", "kids"],
  fragment: ["toys", "1"],
  query: Dict {
    "color": "red",
    "age": "10"
  }
}
```

## Construct

## Test

```
npm i
npm test
```

## Todo

- Username
- Password
- Construction
