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