get-loc
v2.0.6
Published
Gets the current location for an html document with polyfill and webworker support.
Downloads
339
Maintainers
Readme
Simple utility to get the current window.location
. Has support for history polyfill and web/service workers.
Installation
npm install get-loc
Example
import { get } from 'get-loc'
const location = get()
location.href === 'http://github.com/DylanPiercey/get-location'
Contributions
- Use
npm test
to build and run tests.
Please feel free to create a PR!