Skip to content

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

License

Notifications You must be signed in to change notification settings

rayyee/lame-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️🦆 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( "https://www.example.com/foo/bar?_sort=asc" );

console.log(url);
{
    port: null,
    resource: "www.example.com",
    pathname: "foo/bar",
    hash: "",
    search: "_sort=asc",
    href: "https://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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published