get-loc
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published


Get-Loc
API Stability TypeScript Styled with prettier Build status Test Coverage NPM Version Downloads Browser Bundle Size

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!

Package Sidebar

Install

npm i get-loc

Weekly Downloads

92

Version

2.0.6

License

MIT

Last publish

Collaborators

  • dylanpiercey