A URL parsing library for ELM
Given a url like:
http://sam:[email protected]:3000/products/kids#toys/1?color=red&age=10This 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"
}
}npm i
npm test