
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
ubugeeei-pathpida
Advanced tools
TypeScript friendly pages path generator for Next.js, Nuxt.js and Sapper
- Nuxt Route Type Implementation -
TypeScript friendly internal link client for Next.js, Nuxt.js and Sapper.
Using npm:
$ npm install ubugeeei-pathpida npm-run-all --save-dev
Using Yarn:
$ yarn add ubugeeei-pathpida npm-run-all --dev
package.json
{
"scripts": {
"dev": "run-p dev:*",
"dev:nuxt": "nuxt-ts",
"dev:path": "ubugeeei-pathpida --ignorePath .gitignore --watch",
"build": "ubugeeei-pathpida --ignorePath .gitignore && nuxt-ts build"
}
}
nuxt.config.js or nuxt.config.ts
{
plugins: ['~/plugins/$path'],
srcDir: 'client', // optional
router: {
trailingSlash: true // optional
}
}
pages/index.vue
pages/post/create.vue
pages/post/_pid.tsx
plugins/$path.ts // Generated automatically by pathpida
pages/index.vue
<template>
<div>
<nuxt-link :to="$pagesPath.post._pid(1).$url()" />
<div @click="onClick" />
</div>
</template>
<script lang="ts">
import Vue from "vue"
import { pagesPath } from "~/plugins/$path"
export default Vue.extend({
methods: {
onClick() {
this.$router.push(pagesPath.post._pid(1).$url())
}
}
})
</script>
ubugeeei-pathpida custom implements
<template>
<div>
<nuxt-link :to="$pagesPath.post.create.$url()" />
<div @click="onClick($pagesPath.post.create.$name())" />
</div>
</template>
<script lang="ts">
import Vue from "vue"
import { RouteName } from "~/plugins/$path"
export default Vue.extend({
methods: {
onClick(routeName: RouteName) {
this.$router.push({ name: routeName })
}
}
})
</script>
extends: pathpida#command-line-interface-options
| Option | Type | Description |
|---|---|---|
--pages | Source pages dir path. default: pages |
pathpida is licensed under a MIT License.
FAQs
TypeScript friendly pages path generator for Next.js, Nuxt.js and Sapper
We found that ubugeeei-pathpida demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies