1.0.1 ā€¢ Published 3 years ago

create-vue-route v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

A function to create a vuejs route with ease. Returns the object needed for the routes array.

šŸ  Homepage

Install

Run this in your vuejs project:

$ npm install create-vue-route

Usage

In src/router/index.js:

import createRoute from 'create-vue-route';
import Home from '../views/Home.vue'; // And any other views you have

const routes = [
  createRoute('/', 'Home', Home, { title: 'My Website | Home' })
  // ^^ this will return an object to define a vuejs route.
];

Author

šŸ‘¤ njberman

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 njberman. This project is ISC licensed.