{"_id":"@breezehr/next-static-paths","_rev":"2-fca5b160d736c1e4a52c36d3a22a11bf","name":"@breezehr/next-static-paths","dist-tags":{"latest":"0.4.2"},"versions":{"0.4.0":{"name":"@breezehr/next-static-paths","version":"0.4.0","description":"Static types for routing in Next.js apps","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"./root.d.ts","bin":{"next-static-paths":"bin/next-static-paths.js"},"repository":{"url":"git+https://github.com/breezehr/next-static-paths.git","type":"git","directory":"packages/next-static-paths"},"keywords":[],"author":{"name":"Nir Tamir","email":"nirtamir2@gmail.com"},"license":"MIT","devDependencies":{"@swc-node/register":"^1.6.5","@types/react":"^18.2.13","chalk":"^5.2.0","cmd-ts":"^0.12.1","esbuild":"^0.18.5","globby":"^13.2.0","next":"^13.4.6","prettier":"^2.8.8","react":"^18.2.0","react-dom":"^18.2.0","typescript":"^5.1.3","vitest":"^0.32.2"},"peerDependencies":{"next":"^13.4.6","react":"^18.2.0","react-dom":"^18.2.0"},"scripts":{"bin":"pnpm run --silent ts-node -- cli/index.ts","build":"rm -rf dist; pnpm run build:cli && pnpm run build:lib","build:cli":"pnpm run --silent -- ts-node ./scripts/build.ts","build:lib":"tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.esm.json","test":"vitest","ts-node":"node -r @swc-node/register","type-check":"tsc --noEmit","lint":"prettier src/**/*.ts cli/**/*.ts --check"},"bugs":{"url":"https://github.com/breezehr/next-static-paths/issues"},"homepage":"https://github.com/breezehr/next-static-paths#readme","_id":"@breezehr/next-static-paths@0.4.0","_integrity":"sha512-7cdmz3QSsCY/cE2I7l/FOAr3SLC4c5ulcVaWGp71CS/HDr0j5aHXLVquZi8D4Xq9B7y1/s66+ua/cpely8Jx2w==","_resolved":"/tmp/deca5ff12727126a46d028f66f8f149d/breezehr-next-static-paths-0.4.0.tgz","_from":"file:breezehr-next-static-paths-0.4.0.tgz","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-7cdmz3QSsCY/cE2I7l/FOAr3SLC4c5ulcVaWGp71CS/HDr0j5aHXLVquZi8D4Xq9B7y1/s66+ua/cpely8Jx2w==","shasum":"3985b690a28636159326154643050fdd359aeb2b","tarball":"https://registry.npmjs.org/@breezehr/next-static-paths/-/next-static-paths-0.4.0.tgz","fileCount":18,"unpackedSize":228520,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4fm6Im973BuGpCDYy/pWjjo/oZ4g61QkjCqZffv49SQIgfp+J6e3DwJfLBj6H/TtS2R8uQV/pY5tJg1s6VMPb9ek="}]},"_npmUser":{"name":"osdiab","email":"me@omardiab.com"},"directories":{},"maintainers":[{"name":"osdiab","email":"me@omardiab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-static-paths_0.4.0_1694755258589_0.24440559015827934"},"_hasShrinkwrap":false},"0.4.1":{"name":"@breezehr/next-static-paths","version":"0.4.1","description":"Static types for routing in Next.js apps","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"./root.d.ts","bin":{"next-static-paths":"bin/next-static-paths.js"},"repository":{"url":"git+https://github.com/breezehr/next-static-paths.git","type":"git","directory":"packages/next-static-paths"},"keywords":[],"author":{"name":"Nir Tamir","email":"nirtamir2@gmail.com"},"license":"MIT","devDependencies":{"@swc-node/register":"^1.6.5","@types/react":"^18.2.13","chalk":"^5.2.0","cmd-ts":"^0.12.1","esbuild":"^0.18.5","globby":"^13.2.0","next":"^13.4.6","prettier":"^2.8.8","react":"^18.2.0","react-dom":"^18.2.0","typescript":"^5.1.3","vitest":"^0.32.2"},"peerDependencies":{"next":"^13.4.6 || ^14.0.0","react":"^18.2.0","react-dom":"^18.2.0"},"scripts":{"bin":"pnpm run --silent ts-node -- cli/index.ts","build":"rm -rf dist; pnpm run build:cli && pnpm run build:lib","build:cli":"pnpm run --silent -- ts-node ./scripts/build.ts","build:lib":"tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.esm.json","test":"vitest","ts-node":"node -r @swc-node/register","type-check":"tsc --noEmit","lint":"prettier src/**/*.ts cli/**/*.ts --check"},"bugs":{"url":"https://github.com/breezehr/next-static-paths/issues"},"homepage":"https://github.com/breezehr/next-static-paths#readme","_id":"@breezehr/next-static-paths@0.4.1","_integrity":"sha512-z4sqfKB0mSOw1Yu5qKtA1cTMvf27V2lAmMJ9ygl8hSk0eyy4QmdYOuFe5yZYts1w164aODFL/o5JlmHZX/VIKQ==","_resolved":"/tmp/7e7adcf5579153c2d93288aabc0552ae/breezehr-next-static-paths-0.4.1.tgz","_from":"file:breezehr-next-static-paths-0.4.1.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-z4sqfKB0mSOw1Yu5qKtA1cTMvf27V2lAmMJ9ygl8hSk0eyy4QmdYOuFe5yZYts1w164aODFL/o5JlmHZX/VIKQ==","shasum":"aab965e163547f64f87fe2cafe5caf72ed72ba37","tarball":"https://registry.npmjs.org/@breezehr/next-static-paths/-/next-static-paths-0.4.1.tgz","fileCount":18,"unpackedSize":228531,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5U1czsZseduIsIbaTXt+ZcOBFDT2T6vznyITfkb2tswIgLaGTDmkAutoF0RCKSuNqNi8N8jC6T6Dzp9UUiFXY2Zg="}]},"_npmUser":{"name":"osdiab","email":"me@omardiab.com"},"directories":{},"maintainers":[{"name":"osdiab","email":"me@omardiab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-static-paths_0.4.1_1699340200671_0.3756542381869439"},"_hasShrinkwrap":false},"0.4.2":{"name":"@breezehr/next-static-paths","version":"0.4.2","description":"Static types for routing in Next.js apps","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"./root.d.ts","scripts":{"bin":"pnpm run --silent ts-node -- cli/index.ts","build":"rm -rf dist; pnpm run build:cli && pnpm run build:lib","build:cli":"pnpm run --silent -- ts-node ./scripts/build.ts","build:lib":"tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.esm.json","test":"vitest","ts-node":"node -r @swc-node/register","type-check":"tsc --noEmit","lint":"prettier src/**/*.ts cli/**/*.ts --check"},"bin":{"next-static-paths":"bin/next-static-paths.js"},"repository":{"url":"git+https://github.com/breezehr/next-static-paths.git","type":"git","directory":"packages/next-static-paths"},"keywords":[],"author":{"name":"Nir Tamir","email":"nirtamir2@gmail.com"},"license":"MIT","devDependencies":{"@swc-node/register":"^1.6.5","@types/react":"^18.2.13","chalk":"^5.2.0","cmd-ts":"^0.12.1","esbuild":"^0.18.5","globby":"^13.2.0","next":"^13.4.6","prettier":"^2.8.8","react":"^18.2.0","react-dom":"^18.2.0","typescript":"^5.1.3","vitest":"^0.32.2"},"peerDependencies":{"next":"^13.4.6 || ^14.0.0","react":"^18.2.0","react-dom":"^18.2.0"},"gitHead":"20066b40aafd063d8d64a67ee8d4a6f20c40b36e","bugs":{"url":"https://github.com/breezehr/next-static-paths/issues"},"homepage":"https://github.com/breezehr/next-static-paths#readme","_id":"@breezehr/next-static-paths@0.4.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-QlS+31Xu2o1NvkIb61a39eHHZCOr31yWFTVMLlRh3CrjXkdSHDLGWLp2TZR/FeOB86WuPVEqp0D+SKunY5BXuA==","shasum":"2c9f0965244b42237bbf6715bd92d3937c842543","tarball":"https://registry.npmjs.org/@breezehr/next-static-paths/-/next-static-paths-0.4.2.tgz","fileCount":18,"unpackedSize":228532,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEiMndK3204J0uTQ/wYaSvK/WS1U4aMXbQ+9a/64qaM2AiBHSmfcKGGXAWU2Cle2PCGfXfyHR9by/vHnA0qH3XKPPA=="}]},"_npmUser":{"name":"osdiab","email":"me@omardiab.com"},"directories":{},"maintainers":[{"name":"osdiab","email":"me@omardiab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-static-paths_0.4.2_1699340233980_0.48614220991782653"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-15T05:20:58.473Z","0.4.0":"2023-09-15T05:20:58.828Z","modified":"2023-11-07T06:57:14.454Z","0.4.1":"2023-11-07T06:56:40.830Z","0.4.2":"2023-11-07T06:57:14.244Z"},"maintainers":[{"name":"osdiab","email":"me@omardiab.com"}],"description":"Static types for routing in Next.js apps","homepage":"https://github.com/breezehr/next-static-paths#readme","keywords":[],"repository":{"url":"git+https://github.com/breezehr/next-static-paths.git","type":"git","directory":"packages/next-static-paths"},"author":{"name":"Nir Tamir","email":"nirtamir2@gmail.com"},"bugs":{"url":"https://github.com/breezehr/next-static-paths/issues"},"license":"MIT","readme":"# `next-static-paths`\n\nStatically prevent HTTP 404 Not Found in your Next.js applications using TypeScript and code generation.\n\n## Usage\n\n```sh-session\n$ pnpm add next-static-paths\n# or\n$ yarn add next-static-paths\n# or\n$ npm install next-static-paths\n```\n\nThen, from within your Next.js application root, run the following command:\n\n```sh-session\n# For pnpm users\n$ pnpx next-static-paths\n\n# For yarn users\n$ yarn next-static-paths\n\n# For npm users\n$ npx next-static-paths\n```\n\nIt's recommended to configure scripts in your `package.json` too\n\n```json\n{\n  \"dev\": \"next-static-paths --pages-dir ./src --output . && next dev\",\n  \"generate-routes\": \"next-static-paths --pages-dir ./src --output . && :\"\n}\n```\n\n\n### `TypedLink` component\n\n```tsx\nimport { TypedLink } from \"@breezehr/next-static-paths\";\nfunction MyComponent() {\n  return (\n    <TypedLink as=\"/some/[myArgument]\" myArgument=\"hello world\">\n      Hello world\n    </TypedLink>\n  );\n}\n```\n\n### `pathFor` helper\n\n```tsx\nimport { pathFor } from \"@breezehr/next-static-paths\";\n\nfunction getPath() {\n  return pathFor(\"/some/[myArgument]\", { myArgument: \"hello world\" });\n}\n```\n","readmeFilename":"README.md"}