0.3.6 • Published 1 year ago

url-route v0.3.6

Weekly downloads
6
License
MIT
Repository
github
Last release
1 year ago

Simple Url Route(r)

How to use?

const router = new Router();
router.addRoute("/xxx*", ()=>{});
router.addRoute("/yyy*", ()=>{});
let match = router.match("/xxx/foo");
if (match) {
    match.fn()
} else if (match.next) {
    match = match.next("/xxx/foo");
}
0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

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

0.1.1

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago