# get-loc

> Gets the current location for an html document with polyfill and webworker support.

Latest version **2.0.6** (published 2017-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-loc
pnpm add get-loc
yarn add get-loc
bun add get-loc
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.6 |
| Published | 2017-10-22 |
| First published | 2017-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Dylan Piercey |
| Maintainers | dylanpiercey |
| Keywords | isomorphic, location, universal |

## Links

- npm: https://www.npmjs.com/package/get-loc
- Repository: https://github.com/DylanPiercey/parse-form
- Homepage: https://github.com/DylanPiercey/get-loc
- Issues: https://github.com/DylanPiercey/get-loc/issues
- npm.io page: https://npm.io/package/get-loc

## Dependencies (1)

- [get-win](https://npm.io/package/get-win.md) ^1.0.0

## Recent versions

- 2.0.6 (latest) — 2017-10-22
- 2.0.5 — 2017-10-15
- 2.0.4 — 2017-10-14
- 2.0.3 — 2017-10-14
- 2.0.2 — 2017-10-11
- 2.0.1 — 2017-10-11
- 2.0.0 — 2017-10-11
- 1.0.0 — 2017-03-10

## README

<h1 align="center">
  <!-- Logo -->
  <br/>
  Get-Loc
	<br/>

  <!-- Stability -->
  <a href="https://nodejs.org/api/documentation.html#documentation_stability_index">
    <img src="https://img.shields.io/badge/stability-stable-brightgreen.svg" alt="API Stability"/>
  </a>
  <!-- TypeScript -->
  <a href="http://typescriptlang.org">
    <img src="https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg" alt="TypeScript"/>
  </a>
  <!-- Prettier -->
  <a href="https://github.com/prettier/prettier">
    <img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Styled with prettier"/>
  </a>
  <!-- Travis build -->
  <a href="https://travis-ci.org/DylanPiercey/get-loc">
  <img src="https://img.shields.io/travis/DylanPiercey/get-loc.svg" alt="Build status"/>
  </a>
  <!-- Coveralls coverage -->
  <a href="https://coveralls.io/github/DylanPiercey/get-loc">
    <img src="https://img.shields.io/coveralls/DylanPiercey/get-loc.svg" alt="Test Coverage"/>
  </a>
  <!-- NPM version -->
  <a href="https://npmjs.org/package/get-loc">
    <img src="https://img.shields.io/npm/v/get-loc.svg" alt="NPM Version"/>
  </a>
  <!-- Downloads -->
  <a href="https://npmjs.org/package/get-loc">
    <img src="https://img.shields.io/npm/dm/get-loc.svg" alt="Downloads"/>
  </a>
  <!-- Size -->
  <a href="https://npmjs.org/package/get-loc">
    <img src="https://img.shields.io/badge/size-533b-green.svg" alt="Browser Bundle Size"/>
  </a>
</h1>

Simple utility to get the current `window.location`. Has support for [history polyfill](https://github.com/devote/HTML5-History-API) and web/service workers.

# Installation

```console
npm install get-loc
```

# Example

```javascript
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!

---
_Source: https://npm.io/package/get-loc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
