1.0.5 • Published 6 years ago

route-from-url v1.0.5

Weekly downloads
70
License
-
Repository
github
Last release
6 years ago

Route From URL

Creates Route Object from URL.

Usage

Use getRoute function which takes in url(string) and returns the route object.

Format for route object:

   getRoute(url: string)
      => {
            href: string,
            protocol: string,
            host: string,
            hostname: string,
            port: string,
            pathname: string,
            search: string,
            hash: string
         }

Author

Abhilash Srivastava

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago