This is a very minimal router to be used in a vanilla JavaScript project. There are only two exposed functions and one options object.
I have used this with a simple ViteJs web server.
initializeRoutes(routes, options)
: This function will initialize the routing. A routes object must be passed as well as an optional options object.
goToRoute(route)
: This function is to be called in JavaScript and will navigate to the route.