@which-route/nuxt-router-reader
v0.1.6
Published
nuxt-router-reader
Downloads
1
Readme
@which-route/nuxt-router-reader
Read a nuxt program's router
install
yarn add @which-route/nuxt-router-reader
usage
const path = require('path')
const nuxtRouterReader = require('@which-route/nuxt-router-reader')
const dir = __dirname
const res = nuxtRouterReader(dir, path.join('src', 'pages'))
console.log(require('util').inspect(res, { depth: null }))