This package has been deprecated

Author message:

This package moved to @easyroute/core, please use it instead

easyroute-core
TypeScript icon, indicating that this package has built-in type declarations

1.4.4 • Public • Published

alt text

Framework-agnostic library for routing JavaScript single-page applications

TL;DR Features:

  • Config-based router (just like Vue Router)
  • Dynamic route matching
  • Nested routes
  • Programmatic navigation
  • Named routes
  • Named views (outlets)
  • Global and individual navigation hooks
  • Hash, history and silent modes
  • Functions to calculate transitions durations
  • SSR friendly

Documentation

Coming soon

This is framework-agnostic library

You can't use it without special bindings for frameworks and libraries. This library contains only logic part of router: handling hash or url changes, routes tree generation, resolving current route, etc.

For every framework and library you should have router outlet and router link components.

Currently available:

  1. Svelte Easyroute - bindings for Svelte 3 (NPM)
  2. React Easyroute - bindings for React (NPM)

Package Sidebar

Install

npm i easyroute-core

Weekly Downloads

2

Version

1.4.4

License

MIT

Unpacked Size

58.1 kB

Total Files

62

Last publish

Collaborators

  • lyohaplotinka