0.1.0 • Published 6 years ago

lame-url v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

⚠️🦆 lame-url

The library has url parse and stringify function.
⚠️⚠️⚠️ it is lameduck, because of that no query object no protocol no authentication.
but it is nano-scaled.

TODOs

  • parse function
  • stringify function
  • more test

Usage

const url = parse( "http://www.example.com/foo/bar?_sort=asc" );

console.log(url);
{
    port: null,
    resource: "www.example.com",
    pathname: "foo/bar",
    hash: "",
    search: "_sort=asc",
    href: "http://www.example.com/foo/bar?_sort=asc",
    query: "_sort=asc"
}

Related repos

License

MIT License