Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.08 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.08 KB

⚠️🦆 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

yarn add lame-url
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