
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
ubugeeei-pathpida
Advanced tools
- 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>
pathpida is licensed under a MIT License.
FAQs
TypeScript friendly pages path generator for Next.js, Nuxt.js and Sapper
The npm package ubugeeei-pathpida receives a total of 2 weekly downloads. As such, ubugeeei-pathpida popularity was classified as not popular.
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.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.