0.9.3 • Published 7 days ago

space-router v0.9.3

Weekly downloads
35
License
ICS
Repository
github
Last release
7 days ago

Space Router packs all the features you need to keep your app in sync with the url. It's distinct from many other routers in that there is only a single callback. This callback can be used to re-render your applocation, update a store and perform other actions on each url change. Space Router is stateless, it doesn't store the current route leaving state completely up to you to handle.

In summary, Space Router:

  • listens to url changes using popstate or hashchange event
  • extracts url parameters and parses query strings
  • supports nested routes and arbitrary route metadata
  • fits into a wide range of application architectures and frameworks
  • has no dependencies and weighs less than 2kb

Install

npm i space-router

API

See the API Docs for more details.

0.9.3

7 days ago

0.9.2

6 months ago

0.9.0

1 year ago

0.9.1

1 year ago

0.8.5

2 years ago

0.8.4

2 years ago

0.8.3

2 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.8.2

3 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago