Parse Location
Creates browser-esque location objects.
Installation
$ yarn add parse-location
Usage
const location = // {// host: 'localhost'// hostname: 'localhost:3000'// href: 'http://localhost:3000/foo?bar=bar#baz'// pathname: '/foo',// query: { bar: 'bar' },// search: '?bar=bar',// hash: '#baz',// port: '3000',// protocol: 'http:',// }
License
MIT