sporto/erl/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Erl

A URL parsing library for ELM

Parse

Given a url like:

http://sam:[email protected]: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