0.3.6 • Published 2 years ago

url-route v0.3.6

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.1.1

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago