🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@type-dom/router

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@type-dom/router

This library was generated with vue-router .

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
5
-54.55%
Maintainers
1
Weekly downloads
 
Created
Source

Router

This library was generated with vue-router .

Building

Run nx build TypeRouter to build the library.

Running unit tests

Run nx test TypeRouter to execute the unit tests via Jest.

Example

import { createHashHistory, createRouter } from '@type-router'

import HomeView from './HomeView.vue'
import AboutView from './AboutView.vue'

const routes = [
  { path: '/', component: HomeView },
  { path: '/about', component: AboutView },
]

const router = createRouter({
  history: createHashHistory(),
  routes,
})

const app = new RootApp().mount('body');
router.install(app);

FAQs

Package last updated on 01 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts