4.7.2 • Published 6 years ago

@lyo/history v4.7.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

@lyo/history

A browser-compatible version of history built automatically with Lyo.

Version Build Hits

Usage

In a browser

<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

# Install
npm i @lyo/history
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

4.7.2

6 years ago