Get current view/page/route in svelte based app

Hello,

I created a navigation panel with menu-list-items inside of it.
I want to mark the menu items as active when the current page is visited.
But how may I achieve this?