0.3.2 • Published 3 years ago

@dashkite/navigate v0.3.2

Weekly downloads
1
License
SEE LICENSE IN LI...
Repository
github
Last release
3 years ago

Navigate

Transforms browser navigation events into an async iterable.

Install

npm i @dashkite/navigate

Bundle with your favorite bundler.

Usage

Install for document:

import {navigate} from "@dashkite/navigate"

do ->
  for await event from navigate document
    console.log "Navigated to #{window.location.href}"

Or use within any Web Components that will need to handle navigation events. Just pass the document fragment to navigate.

API

navigate root

Adds an event listener for link click events and determines whether they need to be routed internally or bubbled up to the browser. Produces events for each internal navigation.

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago