@lyo/history

4.7.2 • Public • Published

@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

/@lyo/history/

    Package Sidebar

    Install

    npm i @lyo/history

    Weekly Downloads

    1

    Version

    4.7.2

    License

    MIT

    Unpacked Size

    22.5 kB

    Total Files

    3

    Last publish

    Collaborators

    • lyo