path-router-web
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Path Router

Path Router

Install

yarn add path-router-web
// or
npm install path-router-web

Usage

import { setHistoryOptions } from "path-router-web";

setHistoryOptions({
    baseUrl: "https://test.com/",
});

addRouter([{
    path: "something/:key1/:key2",
    resolves: [() => "resolve value"],
    loadingCallback: () => {
        console.log("Loading started");
    },
    callback: (firstResolve: string) => {
        console.log("Page loaded", firstResolve);
    },
}]);

Docs

https://codetraceio.github.io/path-router/

Contribute

Install dependencies

yarn install

Lint

yarn lint

Test

yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i path-router-web

Weekly Downloads

61

Version

2.0.1

License

MIT

Unpacked Size

29.7 kB

Total Files

13

Last publish

Collaborators

  • omegascorp