title: How to get current route name in Nuxt 2 and 3?
body: <p>I'm using Nuxt.js for building a static website. </p>
  
  <p>How to access in component's <code>script</code> code currently displayed route name (I would like to avoid reading direct url from browser location)? </p>
  
  <p>Can I somehow access <code>$route.name</code> ?</p>