rayyee / lame-url

The library has url parse and stringify function. it`s lameduck, but it`s nano-scaled.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The library has url parse and stringify function. it`s lameduck, but it`s nano-scaled.

License:MIT License


Languages

Language:JavaScript 100.0%