# @lyo/history

> Browser-compatible version of history

Latest version **4.7.2** (published 2018-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lyo/history
pnpm add @lyo/history
yarn add @lyo/history
bun add @lyo/history
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.7.2 |
| Published | 2018-11-11 |
| First published | 2018-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lyo |

## Links

- npm: https://www.npmjs.com/package/@lyo/history
- npm.io page: https://npm.io/package/@lyo/history

## Recent versions

- 4.7.2 (latest) — 2018-11-11

## README

# @lyo/history

A browser-compatible version of [history](https://www.npmjs.com/package/history) built automatically with [Lyo](https://github.com/bokub/lyo).

[![Version](https://flat.badgen.net/npm/v/@lyo/history)](https://www.npmjs.com/package/@lyo/history)
[![Build](https://bokub.github.io/lyo/badge-flat.svg)](https://www.npmjs.com/package/@lyo/history)
[![Hits](https://data.jsdelivr.com/v1/package/npm/@lyo/history/badge)](https://www.jsdelivr.com/package/npm/@lyo/history)

## Usage

#### In a browser
```html
<script src="https://cdn.jsdelivr.net/npm/@lyo/history"></script>

<script>
  history.createBrowserHistory();
  history.createHashHistory();
  history.createMemoryHistory();
  history.createLocation(foo, bar, baz, qux);
  history.locationsAreEqual(foo, bar);
  history.parsePath(foo);
  history.createPath(foo);
</script>
```

#### In Node.js

```sh
# Install
npm i @lyo/history
```

```js
const history = require('@lyo/history')

history.createBrowserHistory();
history.createHashHistory();
history.createMemoryHistory();
history.createLocation(foo, bar, baz, qux);
history.locationsAreEqual(foo, bar);
history.parsePath(foo);
history.createPath(foo);
```

## Disclaimer

This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.

Use at your own risk

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