{"_id":"@avicennatechnology/next-centralized-link","_rev":"8-21bb5ef1dc18f6076ed3bfbdf646eb50","name":"@avicennatechnology/next-centralized-link","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"@avicennatechnology/next-centralized-link","version":"0.0.1","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":"","license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.0.1","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"","dist":{"shasum":"e23ee559889cd3da47cb2edf882f4371abbffac0","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.0.1.tgz","fileCount":8,"integrity":"sha512-eLsCdvWT+DVc5tj+NdNq2qzXR1MB9s3gdlhckvwREhRgK+5vKrtB5RW43aPZTdCceSPrHVhPnPqVFfz2XXl9rg==","signatures":[{"sig":"MEYCIQCcsd9EiV/ZWfFmAe5syAE23pJRzxGOHUOInTbaT7x6VQIhAMG4UG6AXeJytDr7uhzihm8f010slT81wEvJ14XqJEo8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16269},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.0.1_1751706039510_0.9233615393472028","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@avicennatechnology/next-centralized-link","version":"0.0.2","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.0.2","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"dist":{"shasum":"e01d384ca0e9cfd2bb9872c1de4ae0a10a1d3edc","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.0.2.tgz","fileCount":8,"integrity":"sha512-SJ4UGmImuCV8clIT1TgfybYU5p0P1ho+QuZbSNfkn/WW2cEEo0P1KCyyYmcYk7b9JrMDehxyQ0rZxYqLk4UICg==","signatures":[{"sig":"MEUCIChQ9BjopRwB6T2F7KPnZM+7lwF7WxOFWtznkTZ8KPzkAiEAs+zbgOiqaPkCeBx6/rpWQYf+4vnIMRmI1/dMpk+0Ko8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16479},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"67f2a46c6518d6261f6d8108c5263f2b0681804c","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"git+https://github.com/avicennatechnology/next-centralized-link.git","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.0.2_1751708599641_0.05705611613943673","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@avicennatechnology/next-centralized-link","version":"0.0.3","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.0.3","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"dist":{"shasum":"e546b77428b6b16d8244d825641af53b0b9da833","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.0.3.tgz","fileCount":8,"integrity":"sha512-guZU1ljI2xySPSlriPZQwKpltqVB5sIUb+OGNKvIOwfo2jODEvWAn5Q0DA+1sqMxWadDyPGAO5rskPyXZ7f5IQ==","signatures":[{"sig":"MEUCIHClmiKQdAgeufYFhSzcwGLndVqULSBGFFFs8DF0nFwBAiEA1NxMX6vtSRVX0S1kTM1TLxvKHQMcX5CtJCgTcP2gYkg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19959},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"67f2a46c6518d6261f6d8108c5263f2b0681804c","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"git+https://github.com/avicennatechnology/next-centralized-link.git","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.0.3_1751709343591_0.6750065155299421","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@avicennatechnology/next-centralized-link","version":"0.0.4","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.0.4","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"dist":{"shasum":"ced91a6b28c71b8eb373f0fed3d9e8ce66c39c1d","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.0.4.tgz","fileCount":8,"integrity":"sha512-MrhC36fDZFtBhmU/+EGzxW1JSZxO3V8+T0JLn29xp/e38YA5VLPRUTcMPpdNgeBSJg7S80F8udx/dlg1fs7BjQ==","signatures":[{"sig":"MEQCIEN6RMq9yZAsiWjSTIbt5RmaETJE1w4TAH19qk+lJol4AiABLsBaYys/F4qWPXkIcxxgxxU8JniaHEaH0csM+f+33Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21389},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"67f2a46c6518d6261f6d8108c5263f2b0681804c","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"git+https://github.com/avicennatechnology/next-centralized-link.git","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.0.4_1751709995371_0.7388902826216222","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@avicennatechnology/next-centralized-link","version":"0.1.0","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.1.0","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"dist":{"shasum":"7b3fa8da1c9f89e6320b6cc0d7ee76b534c7ca12","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.1.0.tgz","fileCount":8,"integrity":"sha512-GKNCtBP9NyoS9BYf92WiXyYW/XDDBcA8UgJ4WYsmOTWGZ5HA+64T3MWgfQA1J/XvVtmZlEy85nFaP2cnxn/jWg==","signatures":[{"sig":"MEUCIC3pfJoz890mpf2r4bHiXDSEiwSXsAUPMNgvFPRx4teJAiEAwCIyoWUSr1YQmPqC0TAQDIMEals9qDXnKtytPQJde3M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25344},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"337878ca912767ac7175834f91fca79854515961","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"git+https://github.com/avicennatechnology/next-centralized-link.git","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.1.0_1751713454624_0.36013543641706347","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@avicennatechnology/next-centralized-link","version":"0.1.1","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.1.1","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"dist":{"shasum":"abac2d24c2af6010d9725167caa2f18f9a329251","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.1.1.tgz","fileCount":8,"integrity":"sha512-lDW5GhLILl4FHqiemNvTY/1v+NHHAyb6iPon3kJTsI5nmmggjZ9gk28DcHC3o3DjXxPTHHfSik3XgQrgZUaUTw==","signatures":[{"sig":"MEYCIQCA9fVJ+cLlQdnrTM4cxgsjZqxh2UNcffb93ctysOx8TwIhANVbILE62G6d88d8ka86J0UrirxHNoSpXvAA31aPx/Pr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27882},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"337878ca912767ac7175834f91fca79854515961","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"git+https://github.com/avicennatechnology/next-centralized-link.git","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.1.1_1751714773366_0.5505610740162636","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@avicennatechnology/next-centralized-link","version":"0.1.2","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","_id":"@avicennatechnology/next-centralized-link@0.1.2","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"dist":{"shasum":"d807d1fdff7e36879544afaeecffac9a3a7548a4","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.1.2.tgz","fileCount":8,"integrity":"sha512-apVUcX8+8jyp95dIabeiRSjiiaX5lN2ycHVBAGoorw70gueR9EJ3Hr/o8Iajjp3egnD8JlIqYv+sdFYjMHnA5g==","signatures":[{"sig":"MEQCIF0vDGduw5e0Q5vD+ai2t+wnixFIiZ441BZQyE9dPcamAiBdNLa+NCXlIo6vEc+siPg04wCV5mSwp1bgh8UQC3xkpw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28392},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"337878ca912767ac7175834f91fca79854515961","scripts":{"build":"tsup","prepublishOnly":"npm run build"},"_npmUser":{"name":"avicennateknoloji","actor":{"name":"avicennateknoloji","type":"user","email":"yldrmw96@gmail.com"},"email":"yldrmw96@gmail.com"},"repository":{"url":"git+https://github.com/avicennatechnology/next-centralized-link.git","type":"git"},"_npmVersion":"11.4.2","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","directories":{},"_nodeVersion":"22.15.0","_hasShrinkwrap":false,"devDependencies":{"next":"^14.0.0","tsup":"^8.5.0","react":"^18.0.0","typescript":"^5.8.3"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/next-centralized-link_0.1.2_1751715250729_0.010900832440062347","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@avicennatechnology/next-centralized-link","version":"0.1.3","description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","main":"dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","prepublishOnly":"npm run build"},"keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"author":{"name":"Avicenna Technology"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/avicennatechnology/next-centralized-link.git"},"homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"peerDependencies":{"next":">=12.0.0","react":">=17.0.0"},"devDependencies":{"next":"^14.0.0","react":"^18.0.0","tsup":"^8.5.0","typescript":"^5.8.3"},"_id":"@avicennatechnology/next-centralized-link@0.1.3","gitHead":"337878ca912767ac7175834f91fca79854515961","_nodeVersion":"22.15.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-7kgZTEP9h6VNlyLWiTpx+HIVEFX90KF15dVsdTW3iyO0KtC2qOsOAqaIl5sDBPhNvAoVDr5L7Uhz3fAvp2K5mg==","shasum":"3fa06d32a84e6d9f66c35820abbe8fc8dd6359d3","tarball":"https://registry.npmjs.org/@avicennatechnology/next-centralized-link/-/next-centralized-link-0.1.3.tgz","fileCount":8,"unpackedSize":29146,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8hVjrJS7oKWlO7bzS3b9XQzRyapMNIVIw7RFpoLUf4wIhAMPFWbD029DWnB1CXypRH9c45vZEUgHiyL4JQYO0BE77"}]},"_npmUser":{"name":"avicennateknoloji","email":"yldrmw96@gmail.com","actor":{"name":"avicennateknoloji","email":"yldrmw96@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/next-centralized-link_0.1.3_1751715545915_0.17975673212186827"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-05T09:00:39.290Z","modified":"2025-07-05T11:39:06.297Z","0.0.1":"2025-07-05T09:00:39.723Z","0.0.2":"2025-07-05T09:43:19.820Z","0.0.3":"2025-07-05T09:55:43.872Z","0.0.4":"2025-07-05T10:06:35.538Z","0.1.0":"2025-07-05T11:04:14.846Z","0.1.1":"2025-07-05T11:26:13.597Z","0.1.2":"2025-07-05T11:34:10.895Z","0.1.3":"2025-07-05T11:39:06.090Z"},"bugs":{"url":"https://github.com/avicennatechnology/next-centralized-link/issues"},"author":{"name":"Avicenna Technology"},"license":"MIT","homepage":"https://github.com/avicennatechnology/next-centralized-link#readme","keywords":["nextjs","next.js","links","routing","centralized","typescript","react"],"repository":{"type":"git","url":"git+https://github.com/avicennatechnology/next-centralized-link.git"},"description":"Next.js için merkezileştirilmiş link yönetimi - route tanımlarını tek yerden yönetmek için kullanılır","maintainers":[{"name":"avicennateknoloji","email":"yldrmw96@gmail.com"}],"readme":"# Next.js Centralized Link\n\nNext.js projelerinde route tanımlarını merkezileştirilmiş bir şekilde yönetmek için kullanılan TypeScript paketi.\n\n## 🚀 Kurulum\n\n```bash\nnpm install @avicennatechnology/next-centralized-link\n```\n\n```bash\nyarn add @avicennatechnology/next-centralized-link\n```\n\n```bash\npnpm add @avicennatechnology/next-centralized-link\n```\n\n## 📖 Kullanım\n\n### Temel Kullanım (Önerilen)\n\n```typescript\nimport { configureLinks, links } from '@avicennatechnology/next-centralized-link';\n\n// Tüm route'ları tek seferde yapılandırın\nconfigureLinks({\n  home: () => '/',\n  about: () => '/about',\n  contact: () => '/contact',\n  visas: () => '/vizeler',\n  region: (slug) => `/vizeler/bolge/${slug}`,\n});\n\n// Direkt kullanım\nconst homeUrl = links.home(); // '/'\nconst visasUrl = links.visas(); // '/vizeler'\nconst regionUrl = links.region('avrupa'); // '/vizeler/bolge/avrupa'\n```\n\n### JSX ile Kullanım\n\n```tsx\nimport { configureLinks, links } from '@avicennatechnology/next-centralized-link';\n\n// Route konfigürasyonu\nconfigureLinks({\n  home: () => '/',\n  visas: () => '/vizeler',\n  region: (slug) => `/vizeler/bolge/${slug}`,\n  visa: (slug) => `/vize/${slug}`,\n});\n\nfunction Navigation({ country }) {\n  return (\n    <nav>\n      <a href={links.home()}>Ana Sayfa</a>\n      <a href={links.visas()}>Vizeler</a>\n      <a href={links.region(slugify(country.slug))}>Bölge</a>\n    </nav>\n  );\n}\n```\n\n### Next.js Link Component'i ile Kullanım\n\n```tsx\nimport Link from 'next/link';\nimport { links } from '@avicennatechnology/next-centralized-link';\n\nfunction Navigation({ country }) {\n  return (\n    <nav>\n      <Link href={links.home()}>Ana Sayfa</Link>\n      <Link href={links.visas()}>Vizeler</Link>\n      <Link href={links.region(slugify(country.slug))}>Bölge</Link>\n    </nav>\n  );\n}\n```\n\n### Router ile Kullanım\n\n```tsx\nimport { useRouter } from 'next/router';\nimport { links } from '@avicennatechnology/next-centralized-link';\n\nfunction MyComponent({ countrySlug }) {\n  const router = useRouter();\n  \n  const handleNavigation = () => {\n    router.push(links.region(countrySlug));\n  };\n  \n  return (\n    <button onClick={handleNavigation}>\n      Bölgeye Git\n    </button>\n  );\n}\n```\n\n### Alternatif Kullanım (Tekli Ekleme)\n\n```typescript\nimport { centralizedLink, getLink } from '@avicennatechnology/next-centralized-link';\n\n// Route tanımları\ncentralizedLink('home', () => '/');\ncentralizedLink('about', () => '/about');\ncentralizedLink('contact', () => '/contact');\n\n// Link kullanımı\nconst homeUrl = getLink('home'); // '/'\nconst aboutUrl = getLink('about'); // '/about'\n```\n\n### Parametreli Route'lar\n\n```typescript\nimport { configureLinks, links } from '@avicennatechnology/next-centralized-link';\n\n// Parametreli route tanımları\nconfigureLinks({\n  home: () => '/',\n  user: ({ id }) => `/user/${id}`,\n  post: ({ slug }) => `/blog/${slug}`,\n  category: ({ category, page = 1 }) => `/category/${category}?page=${page}`,\n  // Slug parametresi (daha basit kullanım)\n  region: (slug) => `/vizeler/bolge/${slug}`,\n  visa: (slug) => `/vize/${slug}`,\n});\n\n// Kullanım\nconst userUrl = links.user({ id: 123 }); // '/user/123'\nconst postUrl = links.post({ slug: 'my-post' }); // '/blog/my-post'\nconst categoryUrl = links.category({ category: 'tech', page: 2 }); // '/category/tech?page=2'\nconst regionUrl = links.region('turkiye'); // '/vizeler/bolge/turkiye'\nconst visaUrl = links.visa('abd-vizesi'); // '/vize/abd-vizesi'\n```\n\n## 🔧 API Referansı\n\n### `configureLinks(config)`\n\nTüm route'ları tek seferde yapılandırır. **Önerilen yöntem**.\n\n**Parametreler:**\n- `config` (object): Route yapılandırma objesi\n\n**Örnek:**\n```typescript\nconfigureLinks({\n  home: () => '/',\n  visas: () => '/vizeler',\n  region: (slug) => `/vizeler/bolge/${slug}`,\n});\n```\n\n### `links` objesi\n\nYapılandırılmış route'lara direkt erişim sağlar.\n\n**Örnek:**\n```typescript\nconst url = links.region('avrupa'); // '/vizeler/bolge/avrupa'\n```\n\n### `centralizedLink(key, linkFunction)`\n\nYeni bir route tanımı ekler.\n\n**Parametreler:**\n- `key` (string): Route'un benzersiz anahtarı\n- `linkFunction` (function): Route'u oluşturan fonksiyon\n\n**Örnek:**\n```typescript\ncentralizedLink('user', ({ id }) => `/user/${id}`);\n```\n\n### `getLink(key, params?)`\n\nTanımlanan route'u alır.\n\n**Parametreler:**\n- `key` (string): Route anahtarı\n- `params` (object, opsiyonel): Route parametreleri\n\n**Döndürür:** string - Route URL'si\n\n**Örnek:**\n```typescript\nconst url = getLink('user', { id: 123 }); // '/user/123'\n```\n\n### `hasLink(key)`\n\nBelirli bir route'un tanımlı olup olmadığını kontrol eder.\n\n**Parametreler:**\n- `key` (string): Route anahtarı\n\n**Döndürür:** boolean\n\n**Örnek:**\n```typescript\nconst exists = hasLink('user'); // true veya false\n```\n\n### `getDefinedLinks()`\n\nTüm tanımlanan route'ları listeler.\n\n**Döndürür:** string[] - Tanımlanan route anahtarları\n\n**Örnek:**\n```typescript\nconst allLinks = getDefinedLinks(); // ['home', 'about', 'user', ...]\n```\n\n## 💡 Örnekler\n\n### Vize Sitesi Route'ları\n\n```typescript\nimport { configureLinks, links } from '@avicennatechnology/next-centralized-link';\n\n// Route tanımları\nconfigureLinks({\n  home: () => '/',\n  visas: () => '/vizeler',\n  regions: () => '/vizeler/bolgeler',\n  region: (slug) => `/vizeler/bolge/${slug}`,\n  visa: (slug) => `/vize/${slug}`,\n  contact: () => '/iletisim',\n  about: () => '/hakkimizda',\n  services: () => '/hizmetler',\n  service: (slug) => `/hizmet/${slug}`,\n});\n\n// Kullanım örnekleri\nconst visasUrl = links.visas(); // '/vizeler'\nconst regionUrl = links.region('avrupa'); // '/vizeler/bolge/avrupa'\nconst visaUrl = links.visa('schengen-vizesi'); // '/vize/schengen-vizesi'\n```\n\n### E-ticaret Sitesi Route'ları\n\n```typescript\nconfigureLinks({\n  home: () => '/',\n  products: () => '/products',\n  product: ({ id }) => `/product/${id}`,\n  category: ({ slug }) => `/category/${slug}`,\n  cart: () => '/cart',\n  checkout: () => '/checkout',\n  user: ({ id }) => `/user/${id}`,\n  orders: ({ userId }) => `/user/${userId}/orders`,\n});\n\n// Kullanım örnekleri\nconst productUrl = links.product({ id: 'abc123' }); // '/product/abc123'\nconst categoryUrl = links.category({ slug: 'electronics' }); // '/category/electronics'\nconst ordersUrl = links.orders({ userId: 456 }); // '/user/456/orders'\n```\n\n### Blog Route'ları\n\n```typescript\nconfigureLinks({\n  blog: () => '/blog',\n  post: (slug) => `/blog/${slug}`,\n  author: (username) => `/author/${username}`,\n  tag: (tag) => `/tag/${tag}`,\n  archive: ({ year, month }) => `/archive/${year}/${month}`,\n});\n\n// Kullanım\nconst postUrl = links.post('nextjs-tips'); // '/blog/nextjs-tips'\nconst authorUrl = links.author('johndoe'); // '/author/johndoe'\nconst archiveUrl = links.archive({ year: 2023, month: 12 }); // '/archive/2023/12'\n```\n\n## 🛡️ TypeScript Desteği\n\nBu paket tam TypeScript desteği ile gelir:\n\n```typescript\nimport type { RouteParams, CentralizedLinkFunction } from '@avicennatechnology/next-centralized-link';\n\n// Tip güvenli route tanımları\nconst userRoute: CentralizedLinkFunction = ({ id }: RouteParams) => `/user/${id}`;\ncentralizedLink('user', userRoute);\n```\n\n## 🎯 Avantajlar\n\n- **Merkezileştirilmiş Yönetim**: Tüm route'lar tek yerden yönetilir\n- **Tip Güvenliği**: Full TypeScript desteği\n- **Kolay Refaktoring**: Route değişiklikleri tek yerden yapılır\n- **Hata Azaltma**: Yanlış URL yazma riskini minimuma indirir\n- **Direkt Kullanım**: `links.visas()` şeklinde direkt erişim\n- **Esnek Parametreler**: Hem obje hem de slug parametresi desteği\n\n## 🔄 Migrasyon\n\nEğer mevcut `getLink` kullanımından geçiş yapıyorsanız:\n\n```typescript\n// Eski kullanım\nconst url = getLink('region', 'avrupa');\n\n// Yeni kullanım\nconst url = links.region('avrupa');\n```\n\n## 📄 Lisans\n\nMIT\n\n## 🤝 Katkıda Bulunma\n\nKatkılarınızı bekliyoruz! Lütfen pull request göndermeden önce issue açın.\n\n---\n\nBu paket Next.js projelerinde route yönetimini kolaylaştırmak için tasarlanmıştır. Herhangi bir sorunuz varsa issue açmaktan çekinmeyin! ","readmeFilename":"README.md"}