
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
πΊοΈ Visualize Next.js routes as an interactive diagram. Automatically parse route structures and navigation relationships in your Next.js project.
Next.js νλ‘μ νΈμ λΌμ°νΈ ꡬ쑰λ₯Ό μΈν°λν°λΈν μκ°μ λ€μ΄μ΄κ·Έλ¨μΌλ‘ λ³ννλ CLI λꡬ
router.push(), Link μ»΄ν¬λνΈ μ°κ²° κ΄κ³ λΆμnpx next-route-map map --path ./your-nextjs-project
npm install -g next-route-map
next-route-map map --path ./your-nextjs-project
# νμ¬ λλ ν 리μ Next.js νλ‘μ νΈ λΆμ
npx next-route-map map
# νΉμ κ²½λ‘μ νλ‘μ νΈ λΆμ
npx next-route-map map --path ./my-next-app
# λμλ§ λ³΄κΈ°
npx next-route-map --help
next-route-map map [options]
Options:
-p, --path <path> Next.js νλ‘μ νΈ κ²½λ‘ (κΈ°λ³Έκ°: ".")
-h, --help λμλ§ νμ
λꡬλ₯Ό μ€ννλ©΄ route-visualizer.html νμΌμ΄ μμ±λλ©°, λ€μκ³Ό κ°μ κΈ°λ₯μ μ 곡ν©λλ€:
/about, /contact)/user/[id], /blog/[...slug])/api/users, /api/auth)router.push() λ€λΉκ²μ΄μ
router.replace() λ€λΉκ²μ΄μ
<Link> μ»΄ν¬λνΈ μ°κ²°pages/
βββ index.js β /
βββ about.js β /about
βββ user/
β βββ index.js β /user
β βββ [id].js β /user/[id]
βββ api/
βββ users.js β /api/users
app/
βββ page.js β /
βββ about/
β βββ page.js β /about
βββ user/
β βββ page.js β /user
β βββ [id]/
β βββ page.js β /user/[id]
βββ api/
βββ users/
βββ route.js β /api/users
λꡬλ λ€μκ³Ό κ°μ μ½λ ν¨ν΄μ μλμΌλ‘ κ°μ§ν©λλ€:
// router.push() νΈμΆ
import { useRouter } from "next/router";
const router = useRouter();
router.push("/dashboard");
// Link μ»΄ν¬λνΈ
import Link from "next/link";
<Link href="/profile">νλ‘ν</Link>;
// router.replace() νΈμΆ
router.replace("/login");
λꡬ μ€ν ν μμ±λλ HTML νμΌμ λΈλΌμ°μ μμ μ΄λ©΄:
πΊοΈ Next.js λΌμ°νΈ λ§΅ μμ± μ€...
π νλ‘μ νΈ κ²½λ‘: ./my-next-app
π¨ ν
λ§: light
π μΆλ ₯ νμ: web
μκ°ν νμΌ μμ±: ./my-next-app/route-visualizer.html
next-route-map/
βββ src/
β βββ cli/ # CLI λͺ
λ Ήμ΄ μ²λ¦¬
β βββ parser/ # λΌμ°νΈ νμ± μμ§
β βββ types/ # TypeScript νμ
μ μ
βββ dist/ # λΉλλ νμΌ
βββ example-next/ # ν
μ€νΈμ© Next.js νλ‘μ νΈ
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)μ΄ νλ‘μ νΈλ MIT λΌμ΄μ μ€ νμ λ°°ν¬λ©λλ€. μμΈν λ΄μ©μ LICENSE νμΌμ μ°Έμ‘°νμΈμ.
λ¬Έμ κ° λ°μνκ±°λ μλ‘μ΄ κΈ°λ₯μ μ μνκ³ μΆμΌμλ©΄ GitHub Issuesμ λ±λ‘ν΄ μ£ΌμΈμ.
β μ΄ νλ‘μ νΈκ° μ μ©νλ€λ©΄ GitHubμμ μ€νλ₯Ό λλ¬μ£ΌμΈμ!
FAQs
πΊοΈ Visualize Next.js routes as an interactive diagram. Automatically parse route structures and navigation relationships in your Next.js project.
We found that choi2021 demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.