Mango router


1.0.0-beta.1214 years ago4 years agoMinified + gzip package size for @axelspringer/mango-plugin-rss in KB


:smiley_cat: Mango Router

Taylor Swift Volkswagen TypeScript MIT license

Getting Started

requires a node version >= 6 and an npm version >= 3.x.x

we do provide a help command to display all possible arguments

# Install the base package and the plugin (could also be global -g)
npm i @axelspringer/mango-router


Create a router.ts file with the following content.

import Vue from 'vue'
import Router from 'vue-router'
import { Home } from '../components/home'
import { Post } from '../components/post'
import MangoRouter from '@axelspringer/mango-router'

MangoRouter // build the route


export default new Router({
  mode: 'history',
  routes: MangoRouter.all()

This configures the vue-router under the hood to match / to the Home component and /:post to the Post component. The partial paths of the route are constructed by chaining the routes.



If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.