1.0.5 • Published 7 years ago

route-from-url v1.0.5

Weekly downloads
70
License
-
Repository
github
Last release
7 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

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago