{"_id":"@dabrowskif/typed-routes","_rev":"7-b78ed05ab6692166270a144123a7df99","name":"@dabrowskif/typed-routes","dist-tags":{"latest":"0.6.3"},"versions":{"0.3.0":{"name":"@dabrowskif/typed-routes","version":"0.3.0","author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.3.0","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"bin":{"typed-routes":"dist/index.js"},"dist":{"shasum":"c40eb73e226dcb5ab8dbcdc4d194aa552c18d3d1","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.3.0.tgz","fileCount":47,"integrity":"sha512-rURBqFBdAHS33TZqwZOWxRRm+/FSZnwWdHJty+KdX6t1cEjl5k2MHbQb7e9jy5s7+ZKt9KdOKF05oYLXyCA5qA==","signatures":[{"sig":"MEUCID8NVkcUtAJTP7yGAq14NLzpZHeZsNKTd9oA30txvISPAiEAnAp6dvawfkod+Oxx5NBj5TiivCw9FvqSFxhgqZG6HbQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47616},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"c814cbbff78cab9f31dc137bd4abdb159b102b3e","scripts":{"dev":"npm run build && npm run start","build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"_npmVersion":"10.2.4","description":"This Node.js package provides a route generation tool designed for Front-end meta frameworks that use on file-based routing projects. It simplifies the process of creating typed route structures by automatically converting file system-based routing into a","directories":{},"_nodeVersion":"20.11.0","dependencies":{"chalk":"^4.1.2","commander":"^11.1.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.10.7"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.3.0_1705352344058_0.2586831381285273","host":"s3://npm-registry-packages"}},"0.4.0":{"name":"@dabrowskif/typed-routes","version":"0.4.0","author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.4.0","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"homepage":"https://github.com/dabrowskif/typed-routes#readme","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"bin":{"typed-routes":"dist/index.js"},"dist":{"shasum":"1a5c9de3a354718485a84bb3bdfca0b77cd22335","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.4.0.tgz","fileCount":47,"integrity":"sha512-Cv0jE+7+HJ3fKqo9jvuBKXyojuLhTrgxLpbDUQfO/AHR8t8FTDZzKJYVXJfadPT6i16QAbna9wNXJn5mCVEPHA==","signatures":[{"sig":"MEQCIHaiugukxpI2GG6OVKbmKCS8gduhig0zKiHOk4fCD9rFAiAyACbbLEhgWhjCHXPM5vDlyOg9sjETTCi6soCoyjOz0Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49346},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"74a9441a4a16527401ef1231b55073c0e1447e32","scripts":{"dev":"tsc && node dist/index.js","build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"repository":{"url":"git+https://github.com/dabrowskif/typed-routes.git","type":"git"},"_npmVersion":"10.2.4","description":"This Node.js package provides a route generation tool designed for Front-end meta frameworks that use on file-based routing projects. It simplifies the process of creating typed route structures by automatically converting file system-based routing into a","directories":{},"_nodeVersion":"20.11.0","dependencies":{"chalk":"^4.1.2","commander":"^11.1.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.10.7"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.4.0_1705354477605_0.7013863717107005","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"@dabrowskif/typed-routes","version":"0.4.1","author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.4.1","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"homepage":"https://github.com/dabrowskif/typed-routes#readme","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"bin":{"typed-routes":"dist/index.js"},"dist":{"shasum":"cd4f7b43ea2260330992b212c26cf4ff8af626ad","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.4.1.tgz","fileCount":48,"integrity":"sha512-QgS3TV0tOmSOZiUteBJPlyjP5SeKFZ6CMEdhwgqZLIdr5JhbAkUPMCOqKA5wxe1b0wAse49VMGGcsqIobGOoZw==","signatures":[{"sig":"MEUCIF3r7hxhsXV58gRrTsyHzHoUWammU3kSQQbPKtZXekwDAiEA6VaL6mxJ6DaaXcMfiRbb1loyGmiqzn2HE3XZdGGibeY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51105},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"08271bb7992bafd182f741d28e2933727ca20b99","scripts":{"dev":"tsc && node dist/index.js","build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"repository":{"url":"git+https://github.com/dabrowskif/typed-routes.git","type":"git"},"_npmVersion":"10.2.4","description":"This Node.js package provides a route generation tool designed for Front-end meta frameworks that use file-based routing projects. It simplifies the process of creating typed route structures by automatically converting file system-based routing into a Ja","directories":{},"_nodeVersion":"20.11.0","dependencies":{"chalk":"^4.1.2","commander":"^11.1.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^20.10.7"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.4.1_1705356524389_0.9739911808931501","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@dabrowskif/typed-routes","version":"0.5.0","author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.5.0","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"homepage":"https://github.com/dabrowskif/typed-routes#readme","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"bin":{"typed-routes":"dist/index.js"},"dist":{"shasum":"408c897599fce7df67b2ae0ab8606b94a90ee720","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.5.0.tgz","fileCount":68,"integrity":"sha512-9LoEeVVy6dbPkg7KDJfANkGt8CRbXowL1iJ+2ZstfIHIiWWODCKu5G1DytQR3vJ4eoq29u3R9dk5Hv8XOpCPOA==","signatures":[{"sig":"MEQCIByAYt/D4+lIlzi71GfzV5uhuyQHWr2WpyGcerKhGwDAAiBEQ4sHuVtCLmp/Be0dmfW7fjmH6fnpYjO9NnMRJV+n9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60886},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"6d3a3acd15ef0e3d2cecd1b9a207668ff972c570","scripts":{"dev":"tsc && node dist/index.js","build":"tsc","start":"node dist/index.js","test:e2e":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit","test:e2e:verbose":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit -v true"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"repository":{"url":"git+https://github.com/dabrowskif/typed-routes.git","type":"git"},"_npmVersion":"10.7.0","description":"This Node.js package provides a route generation tool designed for Front-end meta frameworks that use file-based routing projects. It simplifies the process of creating typed route structures by automatically converting file system-based routing into a Ja","directories":{},"_nodeVersion":"22.2.0","dependencies":{"chalk":"^4.1.2","date-fns":"^3.6.0","commander":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.10.7"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.5.0_1724434981306_0.9824242061511759","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"@dabrowskif/typed-routes","version":"0.6.0","keywords":["typescript","routes","typed-routes","javascript","routing","sveltekit","nextjs"],"author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.6.0","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"homepage":"https://github.com/dabrowskif/typed-routes#readme","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"bin":{"typed-routes":"dist/index.js"},"dist":{"shasum":"1f49546c53357b5a120d03a317a62bc218c608fc","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.6.0.tgz","fileCount":44,"integrity":"sha512-nWER3Whj9lcS7VSJ1hXvP+xIrorcOwcUWLMYnRLYyrsBkm2RmGTlXX7glMtyjM9wNqM+2Kbkl73DK46fVdmvZA==","signatures":[{"sig":"MEYCIQDAjQkZolasfh8yEU076z699WRYAXWtvO5A2X69zQoCowIhAMX26ePAdrR5T8Ue5eR8hdh+3HvUDjhMTQE7RXkZ4IIn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40178},"main":"./dist/index.js","gitHead":"cfcd86539597ad52f8b5ac38c26f90fb2f33e2d1","scripts":{"dev":"npm run build && npm run start","test":"jest","build":"tsc","start":"node dist/index.js","lint:ci":"eslint lib","prepare":"husky","test:e2e":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit","format:ci":"prettier lib --check","test:watch":"jest --watch","test:e2e:verbose":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit -v true"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"descripton":"Fully typed routes generator for frontend meta frameworks.","repository":{"url":"git+https://github.com/dabrowskif/typed-routes.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Routes provides a route generation tool for Frontend meta frameworks that use file-based routing projects, such as SvelteKit or NextJS. It simplifies the process of creating typed route structures by automatically converting file system-based routin","directories":{},"_nodeVersion":"22.7.0","dependencies":{"commander":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.5","eslint":"^9.9.1","ts-node":"^10.9.2","@swc/cli":"^0.4.0","prettier":"3.3.3","@swc/core":"^1.7.18","@swc/jest":"^0.2.36","@eslint/js":"^9.9.1","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^20.10.7","@commitlint/cli":"^19.4.0","@faker-js/faker":"^8.4.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","eslint-plugin-unused-imports":"^4.1.3","@commitlint/config-conventional":"^19.2.2","eslint-plugin-simple-import-sort":"^12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.6.0_1724606042204_0.11474397010832105","host":"s3://npm-registry-packages"}},"0.6.1":{"name":"@dabrowskif/typed-routes","version":"0.6.1","keywords":["typescript","routes","typed-routes","javascript","routing","sveltekit","nextjs"],"author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.6.1","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"homepage":"https://github.com/dabrowskif/typed-routes#readme","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"bin":{"typed-routes":"index.js"},"dist":{"shasum":"c314c4c09be53d30523da76848f49b6ad26fcf32","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.6.1.tgz","fileCount":44,"integrity":"sha512-wqVT2uBKcqsbPYfIQueiH5iXTgjUdgENxWjf1Xf6NP071zy6Qj/c523LnENTjmUmEXwbvWBiRIcv16P8zfqPGw==","signatures":[{"sig":"MEQCIE4yK3whvvYEQIRGDn08VPrA7xvXNdp7Dr4ARjj5V5uMAiADrIfdBufgECCfJEMTSHkrD/yKo+wikAupwoiqwrcPSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40400},"main":"./dist/index.js","gitHead":"9be9786daf1811ced705ed025538446c39cdfada","scripts":{"dev":"npm run build && npm run start","test":"jest","build":"tsc","start":"node dist/index.js","lint:ci":"eslint lib","prepare":"husky","test:e2e":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit","format:ci":"prettier lib --check","test:watch":"jest --watch","test:e2e:verbose":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit -v true"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"descripton":"Fully typed routes generator for frontend meta frameworks.","repository":{"url":"git+https://github.com/dabrowskif/typed-routes.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Routes provides a route generation tool for Frontend meta frameworks that use file-based routing projects, such as SvelteKit or NextJS. It simplifies the process of creating typed route structures by automatically converting file system-based routin","directories":{},"_nodeVersion":"22.7.0","dependencies":{"commander":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.5","eslint":"^9.9.1","ts-node":"^10.9.2","@swc/cli":"^0.4.0","prettier":"3.3.3","@swc/core":"^1.7.18","@swc/jest":"^0.2.36","@eslint/js":"^9.9.1","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^20.10.7","@commitlint/cli":"^19.4.0","@faker-js/faker":"^8.4.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","eslint-plugin-unused-imports":"^4.1.3","@commitlint/config-conventional":"^19.2.2","eslint-plugin-simple-import-sort":"^12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.6.1_1725039086386_0.589168498685356","host":"s3://npm-registry-packages"}},"0.6.2":{"name":"@dabrowskif/typed-routes","version":"0.6.2","keywords":["typescript","routes","typed-routes","javascript","routing","sveltekit","nextjs"],"author":{"name":"dabrowskif"},"license":"MIT","_id":"@dabrowskif/typed-routes@0.6.2","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"homepage":"https://github.com/dabrowskif/typed-routes#readme","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"bin":{"typed-routes":"index.js"},"dist":{"shasum":"3a5200289b15828b88503400eceeb15c6feb0c17","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.6.2.tgz","fileCount":45,"integrity":"sha512-GUqldAZFYCqdRecGCs4iXjy986rxOyuEBt+BreqsmEDuG2qGgeBuBr4p5yRfo4lp4RMZXPo/z8SyUNefwYvAng==","signatures":[{"sig":"MEYCIQCN087qAIZPWD9Ffuv57KX1rYhBPfaUG5JG33a6PEbn8gIhAPohjI9M48ji6UlDqm65l2aTAhEITT0oE0ubY83IeW4G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39573},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"d88f1c74241517824061e27c29cddb3b7f3341b1","scripts":{"dev":"npm run build && npm run start","test":"jest","build":"tsc","start":"node dist/index.js","lint:ci":"eslint lib","prepare":"husky","test:e2e":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit","format:ci":"prettier lib --check","test:watch":"jest --watch","prepublishOnly":"npm run build","test:e2e:verbose":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit -v true"},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"descripton":"Fully typed routes generator for frontend meta frameworks.","repository":{"url":"git+https://github.com/dabrowskif/typed-routes.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Routes provides a route generation tool for Frontend meta frameworks that use file-based routing projects, such as SvelteKit or NextJS. It simplifies the process of creating typed route structures by automatically converting file system-based routin","directories":{},"_nodeVersion":"22.7.0","dependencies":{"commander":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.5","eslint":"^9.9.1","ts-node":"^10.9.2","@swc/cli":"^0.4.0","prettier":"3.3.3","@swc/core":"^1.7.18","@swc/jest":"^0.2.36","@eslint/js":"^9.9.1","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^20.10.7","@commitlint/cli":"^19.4.0","@faker-js/faker":"^8.4.1","@types/eslint__js":"^8.42.3","typescript-eslint":"^8.2.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","eslint-plugin-unused-imports":"^4.1.3","@commitlint/config-conventional":"^19.2.2","eslint-plugin-simple-import-sort":"^12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/typed-routes_0.6.2_1725044258413_0.01205576613252779","host":"s3://npm-registry-packages"}},"0.6.3":{"name":"@dabrowskif/typed-routes","descripton":"Fully typed routes generator for frontend meta frameworks.","version":"0.6.3","license":"MIT","author":{"name":"dabrowskif"},"main":"./dist/index.js","scripts":{"prepare":"husky","lint:ci":"eslint lib","format:ci":"prettier lib --check","build":"tsc","start":"node dist/index.js","dev":"npm run build && npm run start","test":"jest","test:watch":"jest --watch","test:e2e":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit","test:e2e:verbose":"tsc && node dist/index.js -r test/sveltekit-tests/test1/routes -f sveltekit -v true","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/dabrowskif/typed-routes.git"},"keywords":["typescript","routes","typed-routes","javascript","routing","sveltekit","nextjs"],"bin":{"typed-routes":"dist/index.js"},"dependencies":{"commander":"^11.1.0"},"devDependencies":{"@commitlint/cli":"^19.4.0","@commitlint/config-conventional":"^19.2.2","@eslint/js":"^9.9.1","@faker-js/faker":"^8.4.1","@swc/cli":"^0.4.0","@swc/core":"^1.7.18","@swc/jest":"^0.2.36","@types/eslint__js":"^8.42.3","@types/jest":"^29.5.12","@types/node":"^20.10.7","eslint":"^9.9.1","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.2.1","eslint-plugin-simple-import-sort":"^12.1.1","eslint-plugin-unused-imports":"^4.1.3","husky":"^9.1.5","jest":"^29.7.0","prettier":"3.3.3","ts-node":"^10.9.2","typescript":"^5.5.4","typescript-eslint":"^8.2.0"},"_id":"@dabrowskif/typed-routes@0.6.3","gitHead":"05f8851a4f3077744d82ed160d045b520305912e","types":"./dist/index.d.ts","description":"Typed Routes provides a route generation tool for Frontend meta frameworks that use file-based routing projects, such as SvelteKit or NextJS. It simplifies the process of creating typed route structures by automatically converting file system-based routin","bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"homepage":"https://github.com/dabrowskif/typed-routes#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-HlTL6NVNHGh/rFRqKi9YzlbXKy7cHUX1R2qnIR2Bs4ptHGM/hWtPvLfQ0WrNuAYS53YJd73OKSugbIw5mlyxdw==","shasum":"77acf2102dcefec0f497427f2aee45027a6e9f6c","tarball":"https://registry.npmjs.org/@dabrowskif/typed-routes/-/typed-routes-0.6.3.tgz","fileCount":87,"unpackedSize":72726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdQifvY+U8gO2FpwYltPwy313U834eBzQ2eUnM1gqMqAiApwfO+MstpcqGbSAZn1VlxaTZpUENyEQb1XzPJQccWOQ=="}]},"_npmUser":{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"},"directories":{},"maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-routes_0.6.3_1725045850988_0.240044727322255"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-15T20:59:03.948Z","modified":"2024-08-30T19:24:11.389Z","0.3.0":"2024-01-15T20:59:04.189Z","0.4.0":"2024-01-15T21:34:37.801Z","0.4.1":"2024-01-15T22:08:44.661Z","0.5.0":"2024-08-23T17:43:01.550Z","0.6.0":"2024-08-25T17:14:02.403Z","0.6.1":"2024-08-30T17:31:26.554Z","0.6.2":"2024-08-30T18:57:38.563Z","0.6.3":"2024-08-30T19:24:11.206Z"},"bugs":{"url":"https://github.com/dabrowskif/typed-routes/issues"},"author":{"name":"dabrowskif"},"license":"MIT","homepage":"https://github.com/dabrowskif/typed-routes#readme","keywords":["typescript","routes","typed-routes","javascript","routing","sveltekit","nextjs"],"repository":{"type":"git","url":"git+https://github.com/dabrowskif/typed-routes.git"},"description":"Typed Routes provides a route generation tool for Frontend meta frameworks that use file-based routing projects, such as SvelteKit or NextJS. It simplifies the process of creating typed route structures by automatically converting file system-based routin","maintainers":[{"name":"dabrowskif","email":"filip.dabrowski@protonmail.com"}],"readme":"# Typed Route Generator for Frontend Frameworks\n\nTyped Routes provides a route generation tool for Frontend meta frameworks that use file-based routing projects, such as SvelteKit or NextJS. It simplifies the process of creating typed route structures by automatically converting file system-based routing into a JavaScript object, enhancing type safety and improving developer experience.\n\n## Features\n\n- Automated Route Generation: Converts the routes (ex. `/routes` in SvelteKit) directory into a JavaScript object, mirroring the file system structure\n- Dynamic Route Support: Handles dynamic, optional and rest route parameters\n- Command-Line Interface: Easy-to-use CLI for quick and seamless route generation\n\n## Supported Frameworks\n\n- [x] SvelteKit\n- [ ] Next.js\n- [ ] Nuxt.js\n- [ ] Astro\n- [ ] Other frameworks (coming soon)\n\n## Installation\n\nInstall the package using npm:\n\n```bash\nnpm install --save-dev @dabrowskif/typed-routes\n```\n\nOr using yarn:\n\n```bash\nyarn add --dev @dabrowskif/typed-routes\n```\n\n## Usage\n\nHere are the available options you can use with the Typed Route Generator:\n\n### Options\n\n| Option                          | Description                                            | Required | Default     | Possible Values         |\n|---------------------------------|--------------------------------------------------------|----------|-------------|-------------------------|\n| `-r, --root-directory <string>` | Directory where all routes all stored                | **Yes**  | None        | Any valid path          |\n| `-f, --framework <Framework>`   | Framework for which to generate routes                | **Yes**  | None        | `sveltekit`, `nextjs`   |\n| `-od, --output-directory <string>` | Directory where the generated routes file is saved | No       | Current dir | Any valid path          |\n| `-of, --output-file-name <string>` | Name of the file with generated routes             | No       | `routes.js` | Any valid file name     |\n| `-fn, --function-name <name>`   | Function name that will be used to get url path for given file | No       | `getRoute`  | Any valid function name |\n| `-m, --module-system <ModuleSystem>` | Module system to use (commonjs or es6)            | No       | `es6`       | `es6`, `commonjs`       |\n| `-v, --verbose <boolean>`       | Enable verbose logging                                | No       | `false`     | `true`, `false`         |\n\n### CLI Usage\n\nTo use this tool via the command line, you can run it directly with npx:\n\n```bash\nnpx @dabrowskif/typed-routes -fr SvelteKit -r src/routes\n```\n\nAlternatively, if you have installed it as a dependency in your project, you can add a script to your `package.json`:\n\n```\nscripts\": {\n    ...\n    \"generate-typesafe-routes\": \"typed-routes -f sveltekit -r src/routes\"\n    ...\n}\n```\n\nThen, you can generate routes runnint this script:\n\n```bash\nnpm run generate-routes\n```\n\n### Sample output\n\n```\nexport const routes = {\n  home: {\n    _get: () => `/home`,\n    \"[profileId]\": { _get: (profileId: string) => `/home/${profileId}` },\n  },\n};\n```\n\n### Actual usage in your app\n\n```\nroutes.home[\"[profileId]\"]._get(\"id-123\");\n```\n\nFor a more integrated development experience, consider running this script concurrently with your framework's development server. Tools like `nodemon` or `concurrently` can be used to run multiple npm scripts simultaneously.\n\n#### Example with nodemon\n\n(keep in mind you have to have nodemon installed)\n\n```\nscripts\": {\n    ...\n    \"generate-typed-routes\": \"typed-routes -f sveltekit -r src/routes\",\n    \"generate-typed-routes:watch\": \"nodemon --exec npm run generate-typesafe-routes --watch src/routes\"\n    ...\n}\n```\n\n## TODO\n\nThe following features are planned:\n\n1. **More Frameworks Support**\n\n2. **Native watch**\n\n3. **Type-Only Route Definitions**\n\n   - Evolve the current route functions to support type-only definitions that adds minimal runtime overhead.\n     - Simple functions with typed parameters for general use.\n     - Framework-specific enhancements, such as type-safe wrappers for SvelteKit's goto function or Next.js's config hook\n\n4. **SvelteKit Segments Enhancement**\n\n   - Incorporate support for SvelteKit's advanced routing features, including segment sorting and parameter encoding. This will align the Typed Route Generator with SvelteKit's latest routing capabilities, allowing for more sophisticated route structures.\n\n5. **Custom Strategy Provider**\n\n   - Implement functionality to allow defining custom strategies for route generation. This feature aims to provide greater flexibility and adaptability to specific project requirements.\n\n6. **Support for object-based arguments, instead of multiple arguments inside one function**\n\n   - Passing many arguments into heavily nested dynamic routes one by one is more or less an anti-pattern, so creating an option to make getter function a one-argument based with multiple properties is a good alternative.\n\n7. **Support for passing a query string**\n   - Add a simple option to pass a query string into the function invocation in order to produce full and final route for usage.\n   - This actually can be even typed, after creating specific file to look for, or scanning a main route file.\n\n## Contributing\n\nContributions are welcome! If you have a suggestion or enhancement, feel free to fork the repo and create a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","readmeFilename":"README.md"}