{"_id":"bun-router","_rev":"41-00b8a758dc1df4d3d3035630e87d1fec","name":"bun-router","dist-tags":{"latest":"0.8.1","experimental":"0.7.4-experimental.12"},"versions":{"0.2.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.0","_id":"bun-router@0.2.0","gitHead":"ab6210063968e0149f41f669011855051636894e","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-sg9t40oNSjM3kfJDkBy56qv4wVbVIc/wnNmSyTJxk4MhCkYzgE1CBjXNrt4dc+ogo2g4RuAdUB7JgHLd6mzv/A==","shasum":"3b7f1a79509df1b57a83629be555af8fc05f402f","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.0.tgz","fileCount":17,"unpackedSize":15738,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmtp8Wl75WWR6WQru85q5dkn3RdR+toQZpza06cKmeMAiEAh9Qg9iSt3BXVSJeKVWq9+EVt3bkvTf6Ezn4xjhAo4Wo="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.0_1690523612299_0.3461101217808089"},"_hasShrinkwrap":false},"0.2.1":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.1","_id":"bun-router@0.2.1","gitHead":"6ad1e34aa758b4e67e8d9edddc31f1ffaf883bce","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-6MIK6zwXZ/3arcwEJoiStae/UjR+ZBoHgGaCKI53EPxwxvDZQc4kvICAH/u6KwLw+T2N99iNETgWJkRmEk/9eg==","shasum":"86f3622bc03f808698fc048d75eb3e2e3767e156","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.1.tgz","fileCount":17,"unpackedSize":15738,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsX9gYNEFoJrsLh6XdeCISrWAumWJmv3nTrMdHyMelwwIgcxCLhP5/Fkeu8HDI/Q1FI2bLlBWZIr9WQLmCg+QO+yQ="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.1_1690524142332_0.6510565112764541"},"_hasShrinkwrap":false},"0.2.2":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.2","_id":"bun-router@0.2.2","gitHead":"3b12d426fd4ee84d7d495a61fe65fcd7843b7855","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-Cc16orWomI6UnIID7tWlyJUOwZBgo4nqN+BnevKv4Fsl6RxQK/+21hHctHKxQ6YVMUyCRZ6r0TMAQdMbrIFEmg==","shasum":"24daca7a76471a31cf625cd60efa702cb3af719f","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.2.tgz","fileCount":17,"unpackedSize":16033,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqPJWe0kc39oUCIc8YIY2Se4khc4nCCtrh58fcKPOOqAiEA900Y1BtRLyerMraSB2qR4BJTvtSa7iYj8LNbEaKEVU0="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.2_1690572715955_0.7627751535917222"},"_hasShrinkwrap":false},"0.2.3":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.3","_id":"bun-router@0.2.3","gitHead":"f0e33d405a2fafbce588288b2d7742c3cd749378","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-oUJhZ3oL3+/462Up39AkCxwWdE95d0xUWPjG+oj3COXeNqYq225OEv8V5pCQU2uNhjtWXk+EwOfyrBjEgtdY8A==","shasum":"ac72735c2c2beb4632cb8832a314cc083d80967f","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.3.tgz","fileCount":17,"unpackedSize":16039,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFfxyy18PbfLycnPljX23icPfVQRQs0DOJQEaw/de3EgAiBKt43fBA5FLR9P9QXT2tdllL0BwmrSAdnCLpyJfw0JcQ=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.3_1690572836187_0.5553752002641121"},"_hasShrinkwrap":false},"0.2.4":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.4","_id":"bun-router@0.2.4","gitHead":"4433f6b271359e0f65616262eed8d7cebe7e63f3","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-Q5zsQ+PrpcBD8cJeqqxTN9queUFl1LPy34tTYtjmfab9YVDWWeORqACG0vGa2Ietq2UWx6z5IJSaeuv0Biy4MA==","shasum":"fac6bff970b51507d2340427bc178273df7d2b62","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.4.tgz","fileCount":17,"unpackedSize":16125,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExY/qt5rbxdRTcMgcRA9Nv7q9g9OAeUkUzZVUDl0qfAAiB/Js/hKWsjeI67kBCqSOMvRyYXcv8+92B+Ekz5bbmxPg=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.4_1690575290443_0.006672827458463093"},"_hasShrinkwrap":false},"0.2.5":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.5","_id":"bun-router@0.2.5","gitHead":"09fcf460bd9913a2ae9dac5850835608b6809cdd","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-DzDDA5jXZV5P1mr4nqVdRuU2/W4fBXv/FBUMV2Fyc5RPyr6RyF0VJduHvKp/abarGkSq2AOejXr93ubN8eyD5A==","shasum":"2c0f51feb446d248e62ca47fa15cd8fd9b8f56fe","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.5.tgz","fileCount":17,"unpackedSize":16140,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnGpl+8gZVFyYaGIhcP+rRgD1guDnb3uLqN/XTUE+NLAiAta2Em43uuG7UX3Gdwz9jRgOr1Z6aKmQjD1TV+o4cPWA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.5_1690575532277_0.10151731800614017"},"_hasShrinkwrap":false},"0.2.6":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.6","_id":"bun-router@0.2.6","gitHead":"bf3a250c6178f2f25d2e7ef7c5ef3b9675f4e32b","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-GJnkroBfipsBOJqb5sOvDTYSa80i8gKPENxg30NeZYuxQmufmBNInWKXRLNuE6IrWzxlVqqW6YOnXSVNDe0DAw==","shasum":"30f9decca9e71c7bf1b52391c9d8a953ffee8874","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.6.tgz","fileCount":17,"unpackedSize":16085,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVG3i9YTR4g9cpJfajjYvWJih9IXGkrqysUbMBhx4Q9gIgdMID69GI+VPKQhfQhxJFgERyXE5t9FFTNIiLMl4aYtU="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.6_1690576015667_0.020635083495590623"},"_hasShrinkwrap":false},"0.2.7":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.7","_id":"bun-router@0.2.7","gitHead":"8bce0026ad2b3b14a96e351a5b6bf18b5db24f90","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-qiaW1fRHRH0QYS5PEMwJQMXBkER8SjAIY0yGrJuyEkVojRQKm/NEnC2p69Q/rwl+wu7gfgNHHKhnZ63nyjqUJA==","shasum":"b26da6fde217a0e607a4381a1c46bc9c6ff8adc5","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.7.tgz","fileCount":18,"unpackedSize":16485,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvAFM4sNvwXXs41qzX0J7VMz8BQ7Ia+yxFCCf8FiJjcAiBTaPZV9DLlyU7oCYjKwKjHitlozjNkphRwsX6GDVtLCg=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.7_1690580458974_0.38550457228757873"},"_hasShrinkwrap":false},"0.2.8":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.2.8","_id":"bun-router@0.2.8","gitHead":"0bbc3bdc72b13a8604ad0af861c8751ee2afae78","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-MJXdMP+nKY/PPEKUIawmcMHfI/WQR8RzQEBrks6qxkT+Kl8Qw4zxd5whGF635da4hF8q0EnbC04gJR2ftYsz+A==","shasum":"ddc9cfa0004217791dc9086520c1bfc292b9a014","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.2.8.tgz","fileCount":18,"unpackedSize":16390,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTFw6NF+Ihb+vqzLYq52OvVroVSvt6dQ2h9XPplBxwTQIhAJtoBKcBj42C7MlRYAzrkUGjSUF9bKne46bSxbJj4J8f"}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.2.8_1690582729571_0.88161121159869"},"_hasShrinkwrap":false},"0.3.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.0","_id":"bun-router@0.3.0","gitHead":"18248cc438ab05c34a91e3194d6a43c0799950af","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-hRI1cIbGayJijZUP2deErS2g3WIE9T3AvttCSWaV6YtsD0ckQ5jwscB+Th012HK8xnGvmpkyeSvsEVEpsCO+sw==","shasum":"868770acb82156f9489b1056e402c1a6138a3e67","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.0.tgz","fileCount":18,"unpackedSize":537577,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGhwQp+Uqsa0vKvZn0pxPFUdxi3t6mSEmBDBI4gA0002AiEAjyK5nWf5K1xiwYoPPoMYBTo8/j0gemV0bYPfFU5GFow="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.0_1690854529655_0.10235008233521148"},"_hasShrinkwrap":false},"0.3.1":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.1","_id":"bun-router@0.3.1","gitHead":"bc82a027b06bb1293b33a4e8c78934128b42d1d9","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Yjhiowy/ju1GJmTlde52PKICJx4cfSklVkqvK3oM6JlDBMjUHLacOD+M34XAMvUUcpLhoaU/JgXAhe5DIero9A==","shasum":"5542bf74911303878cdaa1c00c2411eca2e529d3","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.1.tgz","fileCount":18,"unpackedSize":537444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwFaduOJojbOC86dTAdDtTAKdr6YBmtJmnKluBHPx3qAiBTkyCVoNMtTI5Nsv02FntFM1L+8J0kD4ZqVA0lnkSFXA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.1_1690854864041_0.4150084158881706"},"_hasShrinkwrap":false},"0.3.4":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.4","_id":"bun-router@0.3.4","gitHead":"eec23028b6d76004fd6407b064ce91157b95bf71","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ymjq0+inYtkOBBGV8lf58DCYnH2vf3Zl7V5Wxbq2P9XlOtpiQ5MtV1AbzcvRmV050bN2bEbyGj2HExtci3Us/g==","shasum":"36b78330f972827a43973778fb8aa409907c0daa","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.4.tgz","fileCount":23,"unpackedSize":753906,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/aFWEp5xK7MTCPa6fJpqnzVvJ2d3uWt2PJ/zWprCT5QIhAPtAk3bReaRju8GawGQRqXU7z8JmNnlNmgKru0A87iss"}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.4_1691033876402_0.25583417705706046"},"_hasShrinkwrap":false},"0.3.5":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.5","_id":"bun-router@0.3.5","gitHead":"4020c6294b85a2ea25c471c950137f102ce3e1b7","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-wovx7jDyIo8E6+zzXTFUrZBHx1Bw7QMVf1ecX8CNecBv69jyNIhn5T+Opn9OpjVPeQLvReUfTy9WAoGh7+E6Kg==","shasum":"9585df310b5fc355575c0e4e86f0af7f48545df5","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.5.tgz","fileCount":22,"unpackedSize":543197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq/iglFt7QbA/5Km3eiydtAASKTy7EGm0x6VEkWaoVSQIhAJvorXZj3QpVTt0WgYQ84EPV+yqUUl7JxVb5UsedZEIi"}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.5_1691034224186_0.24500178514454407"},"_hasShrinkwrap":false},"0.3.6":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.6","_id":"bun-router@0.3.6","gitHead":"41a2ea39972f6719d55156e238c996bca460ae6a","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-1aZKbV1KQ43idMt+5zfykbIqubamVqw91VQRy6wf11nx1hS593QtgxgmwGoOnVHfOuG2d6MzJZLe3N3qjX2/9A==","shasum":"8f7bcb45aec40e3aca7302966a61e21bac199e5d","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.6.tgz","fileCount":22,"unpackedSize":543225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELe+0xEZBjGIl41eb7OHeeczOUdn6BuL66iEUbRxQPeAiEA/I6f0NiZexfQqV2Wkl54HxqKjLtRHAAXwwDartys+oA="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.6_1691036356301_0.5396131270872309"},"_hasShrinkwrap":false},"0.3.7":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.7","_id":"bun-router@0.3.7","gitHead":"71e68912eb3d6f6a524f93176f4b76a48fa62c9d","types":"./index.d.ts","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-0VOhlM7VqbqdSrQcXZKIlLEpLwiDg3IYEVvTVw/l14VhWbYRZKWK2Xlvwj7Q4I7jMCESnVEN2Az0MFzKxLOTpQ==","shasum":"b0d6574b3c8799049dd82c02033848b1b052db06","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.7.tgz","fileCount":22,"unpackedSize":543272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuCcZZPKkpK8jtj+lyHP8yly6lhWdMbnnTuMU2/wmaWgIgCwOsIEH5tDAPDPTHZ1euO86uMdeOzCpZy/9O6+KMNdg="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.7_1691075830516_0.12450391639477454"},"_hasShrinkwrap":false},"0.3.8":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.8","_id":"bun-router@0.3.8","gitHead":"91e6805e489b9e807c0d0fdbe8fe79514c872871","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-ycm8nyt1aOjDeH/R8M87zphF4VIjY2KEl3kNuUlMgwlY44r/WHW6qd3pCq/FWNC/zRJfYxLbk28VbFIaDMYrhg==","shasum":"881ba11ddee22499cdec2d84ab5104d26521ec7e","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.8.tgz","fileCount":21,"unpackedSize":543274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICku29b4KSkz2r27V5s6nZyR/95h1HHnW/cX028DwF2NAiEA+XP22i99XfV2TcIhCYp68hyNXeXs8WT3Mv2RPsYXTxw="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.8_1691076321426_0.7431108646537252"},"_hasShrinkwrap":false},"0.3.9":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.3.9","_id":"bun-router@0.3.9","gitHead":"2dffd68305484d3f7f27b890f19e56cd1021b8be","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-jExuV/usmhiXKqSJzH041F7nYh/DdFCsPa/bIwtdsBtx5VCvy/BzS3G6c6iYre307XK5GKMPe2dfzcF4gw4OgQ==","shasum":"f9d5efa0d4dda51d7b54d6a1761a3fe6e2715d06","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.3.9.tgz","fileCount":22,"unpackedSize":544330,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDhFbKP04Yej4l6+fupVt63bmvQkrGoxuWXU2ioP/DAAiEA9K8SCW91hBJBKq6PSx4O02ns14+ytZIZr5uHztWWTB0="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.3.9_1691079030691_0.40281067918906377"},"_hasShrinkwrap":false},"0.4.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.4.0","_id":"bun-router@0.4.0","gitHead":"fbd4daf88e4fb3aebb970e341bcb04cbb0718ce0","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.4.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-gPBdsSMfbOOYtqCUpF7bbbysepUrwEB4yNp/1pjwadw3rAKA510iE5828pcxEIwyUIiL4VJRSWMC9WrhMZp0ew==","shasum":"b3209c5d572b39cb3d76bd934420f7c7823e3cc6","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.4.0.tgz","fileCount":22,"unpackedSize":544330,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkOKEZdZNgISvLV5dkMH2Xvk/62v5GJpTMw1WFBiSVVAiB69d7dEPZzUTq8IElkZbv4OUBveFl3ExCvHTgukNrMcA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.4.0_1691082319634_0.7767857395630808"},"_hasShrinkwrap":false},"0.5.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.5.0","_id":"bun-router@0.5.0","gitHead":"d3a765a691ff7f66ec787001d6ea5e84b2c77e0f","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-cguKkHjV2yuXt8zDEzebMsFS/AP3+vxjARsRDk6JaRQY8w05DkKCwF41mstRNzHS38gTDD0o4CItFEpnvCi1ZQ==","shasum":"972d2b14325ed47b7242930b9810563eab81cd5a","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.5.0.tgz","fileCount":24,"unpackedSize":555376,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF6PQSvXkKyQQi2BLbfJ+BclbBnJNaZXgpTRiqHygMF0AiAiIDDD/Z0bTqiF8GEQuik8aNb0Sz6jDAnbKHVa2cZNfA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.5.0_1691643256833_0.6554479598385445"},"_hasShrinkwrap":false},"0.5.3":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.5.3","_id":"bun-router@0.5.3","gitHead":"bd7b03f0a7cde4ad861beae05664bff4f9fdeb37","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-VwLWo3xchz/yB0l9c3yEr/8LHS3VZ4SwtvHKaxUA2w/u0ZyIHOgb+rFNmdh/hLQMGxhNynEda/+/ItrVD1MDpg==","shasum":"05998d34de44ae927991f828eaa7e3b2d3c86fc7","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.5.3.tgz","fileCount":25,"unpackedSize":559534,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6BC4oi3FYjcEAZqJ1r/sq9OMvfn6a6E9ATkdLO2u6zAIgdrBDr4yJvS8ZILvdd3VTfc0q0cVyYufqnZVapW9v83Q="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.5.3_1692332669684_0.5707393983293083"},"_hasShrinkwrap":false},"0.5.4":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.5.4","_id":"bun-router@0.5.4","gitHead":"2d33306cc669e3014447a935e1b9c2835d768ff3","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-5AgkEfNJa/Mbu3nId+eXWHpELJEXrjxay2mscVn32VUBCPVlWTZnHILEkFx/p8D2NWRYNGgUhge4qGcbbnC+OA==","shasum":"ef3e459f552e98324df375bce67c1bf63199a513","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.5.4.tgz","fileCount":25,"unpackedSize":559558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHcEywpMjrx5MR6B1Wy07+XxXlkMm/wNQLdGi+b2LYzAIhAOzbIHSNeo60Biw4unbCsVzFW+Hukpd7iskTBpHkwHl6"}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.5.4_1692334834641_0.15439823602949487"},"_hasShrinkwrap":false},"0.5.5":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.5.5","_id":"bun-router@0.5.5","gitHead":"41682206a4fb1aef7ed796f23c8e3976f3d60c31","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-18BS4VlhMCNVHT93ZAnCY/yWIIvwHOhp7Za9nemTF6B4DPlwCVEa9tYtUwTSj1o1iWZF71sD8VLk/FCj39B2pg==","shasum":"ff4e578c31f67a999b433340e2c616071e8b4cd1","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.5.5.tgz","fileCount":26,"unpackedSize":559318,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhWhb9x3zuDyVoTsQVYBP1FG4pFXX0OTZNbEEaK2s41AiEAvMU1eC3nuKL6gZNd3FIeaIww5O2zdJeCgayYxRymKyI="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.5.5_1692424490571_0.4384713382591825"},"_hasShrinkwrap":false},"0.5.8":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.5.8","_id":"bun-router@0.5.8","gitHead":"f638bfd2d0257632530bb1d498041c5fdbcc1f8d","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-pRF4Ox+Cf1mt6kLMLqHqzJx4zkDKSItRNsCa05x5AcGeOKCX4LWk6F/7UGDRUDcIQ8ni6SPr4BuCu4j0p3ddiw==","shasum":"f4aad3622f49a6bf7729eebfdace8eb3ec1cc770","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.5.8.tgz","fileCount":27,"unpackedSize":560575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHVO8D7tCiX+u9vGfSmRk6OwGCib8p/TqJoCEQ7YqjHTAiEA6z5feUsqiyEufF4H/TeBKbPjdHtKK8Va84KcpUaEgL4="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.5.8_1692642652120_0.13668852043180935"},"_hasShrinkwrap":false},"0.6.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.6.0","_id":"bun-router@0.6.0","gitHead":"eab31cc2d8e73e19ac74df7635e4213021ec843f","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-81Y2G5vtr9QqgL+H6Gl2mnx+n5yp7tB5g9Y/hBeFNRMwV8782+iO/WmNEEz9H59j7PmOjODrlCb/w/gkXt2JNQ==","shasum":"03cd281ba18b0b15267d90aa13ab7e8a6bcab393","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.6.0.tgz","fileCount":28,"unpackedSize":561851,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBs+ZMRqD91XfDTBVVidpCrEQdIzsHpLpfSvByqry/hQAiB4rtfJyzJo3a/DCsXpZdGssWkUNKQtXcQ/WUf32ctioA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.6.0_1692758170983_0.4608551615978087"},"_hasShrinkwrap":false},"0.7.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.0","_id":"bun-router@0.7.0","gitHead":"694895f02629686095bedef9d5f2517145229b61","description":"I needed a router for `Bun`, so I made one. It's simple, naive, and hardly anything is abstracted.","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-P0F4aer3L0MqM0Ld2puS8Z0sgalbo7vsNOW7CcwOSGbDvt1l2RCpfsf3fpZUsweg9bUHn+zOF3k9M0hobn89OA==","shasum":"4bde8c0a4487e009c5d6f2e1927d654e1282e475","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.0.tgz","fileCount":28,"unpackedSize":560091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8YLR9IgEZP7hE5x5jZcCuGe1OBWb1OoR2JZsyHWkXBAIgW2Pl/6K2if3gulyfCWZ3/V3icT054+4D2pDbP21TVAQ="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.0_1693186804134_0.6679446531253712"},"_hasShrinkwrap":false},"0.7.1":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.1","_id":"bun-router@0.7.1","gitHead":"4ece6410e804b848d0b369a2492236078569168b","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-iVw5JfKGHVuykXtaZh0RKfDuFh7R5TAE10xLj8gslNLnHipA42X8rYoevstnxkowqOCLcFY05woagWwRPo/pZQ==","shasum":"ceee72ee99206fecd2353c36985471cbb93e74bf","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.1.tgz","fileCount":30,"unpackedSize":558695,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4EnvZvCG9MsYrHqGUJH4ZEIqaLL9pV4xh6gMGDEZCPAiEAm8cupTzCTqo7VkM3G9NxrTaw8eBHv4t1f74RNa6ELLU="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.1_1694930891952_0.6833622142241771"},"_hasShrinkwrap":false},"0.7.2":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.2","_id":"bun-router@0.7.2","gitHead":"22c964a9d986581e752bfb5d97230c837505b2c7","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-V+ndW2wFQxH3daf5jXwlwMJd/Pn2gxSKYxJNmsLqNZkbJyZserH+P0DBCr7LaI2MPvF5JuwgQJFqRwEl8Yd4eA==","shasum":"f4570a4585159dd17cacc1e14862daf5ef27cb33","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.2.tgz","fileCount":30,"unpackedSize":558777,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6ZuYIm5e4uw4TWb+4Pg7zPcGyc3RkactmZxGxapTrIgIgfBT+wYPEE20KUOc0XdzkWai7rIbw7ssh5Iss0Sk7gY8="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.2_1694973309169_0.844022932424878"},"_hasShrinkwrap":false},"0.7.3":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.3","_id":"bun-router@0.7.3","gitHead":"4cb860e8f2ad923c576ceb38ca71c063094c729b","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.6.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-9nyLClZOttrOIQio46X8x/oUO1m+nmQ87LQn16YPzOpJqev8IIn13KI0dj0ExC6xJD1AORmkFw4AAoiRgmO5mw==","shasum":"525cc6082d87f9efb20a38a417e81675ea3bac3a","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.3.tgz","fileCount":30,"unpackedSize":558768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICv6mZTkp8jzukgk12q1g/vdKrSrkDoFd1R2hnMTcqvoAiBg6uZTERJmpG5Ogdxsabvs/M9tBwhFinVU++AOBxXkwg=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.3_1694991392361_0.2449086081452334"},"_hasShrinkwrap":false},"0.7.3-experimental.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.3-experimental.0","dependencies":{"eslint-plugin-react-hooks":"^4.6.0"},"_id":"bun-router@0.7.3-experimental.0","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n","readmeFilename":"README.md","gitHead":"997016e465478132c38db17bf1949d4d017bca00","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-edPDi4qzWc/t2eflI1f4rqKf0mTf7gIat72r90XvXpltKDFHeMyLkpf5K09/OViV3MoNkmd6JVjJNARQI54Zpw==","shasum":"56a8f4a42afa2dddba87d0638247ee7d5872abc9","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.3-experimental.0.tgz","fileCount":31,"unpackedSize":561363,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDyO42kTgApBGr+TqfqPHxU7Nv/GExC9596BBido17zhAIgF8iMz+Asue7d6ksgJu/ZpTfVyISzc/hMhM9rngVwV7w="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.3-experimental.0_1695098667713_0.4669969764081032"},"_hasShrinkwrap":false},"0.7.4-experimental.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.0","dependencies":{"eslint-plugin-react-hooks":"^4.6.0"},"_id":"bun-router@0.7.4-experimental.0","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n","readmeFilename":"README.md","gitHead":"86705c6630b5d86d7402ea66f91c16af97316fb3","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-Fn0ozYh/D6Z4Y11ufzziyWgPhY78L89zgVvPFB6Wv1EWYdnbKrQd9onAm6awEM1qY8pnb4aptlQMV/koKC0U+g==","shasum":"4f8ae110cf51b3b9ad6e6d8fa46f787b9d2d8dc4","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.0.tgz","fileCount":31,"unpackedSize":561377,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHShxgoHfh28EXTxvTMCI3fBtVnQCpvUPEKv58HfQqemAiEA9eIUzZWJjQbX7ZCjOlTFWQoXsp1XyKr4MJ4ub5KvLn8="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.0_1695099140276_0.8204916145875902"},"_hasShrinkwrap":false},"0.7.4-experimental.2":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.2","dependencies":{"eslint-plugin-react-hooks":"^4.6.0"},"_id":"bun-router@0.7.4-experimental.2","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"b6217ba768690a0f40662ce01c288761524ca4fe","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-it39EUOVgn3LO/aV773R2lyPC4f+jkb/6YtTJqpwrPYIiZvscsE58scT53kxQbsmn2MQSoBcmHiWp65Ynvfwdw==","shasum":"adb86f047c44a22617a89351a9772e964eddb010","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.2.tgz","fileCount":35,"unpackedSize":564908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQX0LhAa81HGhdNxCsailwTzoDLB4LfR02sxYyHYGVhwIhANfgd46pERJZ/PqO3P5ciCRNL3pNLMggSnPOjWnsDVg8"}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.2_1695271757654_0.7732251944879789"},"_hasShrinkwrap":false},"0.7.4-experimental.3":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.3","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.3","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"9899d4107f90e64ea9a999588cd08de72746fcea","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-9YNa0KEwmwwMP4HOwyFmwuvENAkhzQI2G3gn5F75UkAt5pJhSRiMeM8mwsSm2uQXVIbWY1nP9OzPTL5rgq8mvQ==","shasum":"a5df53a7afee23121f7c0efc8ea2f4d57bcf909f","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.3.tgz","fileCount":35,"unpackedSize":564959,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDheD0u72j27LG8dvSImMn2UqW78TL8MOAeNbmbK7+HJgIhAMY0OuzaSfn2uPgAmuVx1RQVrZ8sks8O8HUjmcXM3Vt0"}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.3_1695274083150_0.01473155395950898"},"_hasShrinkwrap":false},"0.7.4-experimental.4":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.4","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.4","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"c823f59c0dec7084341d71038c30e67d8c354539","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-4nQmXQQRxUeCj8N8q2QOaIhhUU6VufGsM8/7M3zmbtUI89VqXUi6PbjIDbe4gKkLYE1SVGVNFJiIkqf3IEl7ZQ==","shasum":"151d5db88337c2253f3a9408ea123864b9cf4411","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.4.tgz","fileCount":37,"unpackedSize":565469,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETBhgTpOFZQQiquJwpEqR3iATrR/3GZAY01rRlNNGBSAiBTMfIt0wj2HUMrHbnFWjr1zfGPayTypcKb0euvQLqhzA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.4_1695597384863_0.25562110044968867"},"_hasShrinkwrap":false},"0.7.4-experimental.5":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.5","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.5","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"683e86001cb850c5806e9338ed415b71c58b3e43","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-GCz2XMFxRYBEyaluKNKyjwm6JFJoVCw7scd74NrLPLBeanRPoSDPBnodP3//enR+HaiZ3BKINFRq0c4YovaeLw==","shasum":"56153aedbb5fadf06dd347e75930e77a4944ff38","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.5.tgz","fileCount":37,"unpackedSize":565620,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgaHHAgLW5wThoFj0lXJU5jSx3ugpKg3ecWRztBzXJ5AiEAyMzYcqW4XqGLLlAGp+fSynSopzmeFm0AWBSm82nP3Oo="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.5_1695601183335_0.35324838963942207"},"_hasShrinkwrap":false},"0.7.4-experimental.6":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.6","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.6","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"888d0f35bb3417c362a39b5964d3838a6cd294d4","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-yaVc8n2bsh/Y4uVIX4NGzeeTKuxB3nZlE8vbkwx6gPx/e7EUOUmGYRy1KiZJD6ZzKotyXLOR+Byuyrg63tsUug==","shasum":"e31a9ff48e71ae00957b1ce99141b89421d88cc3","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.6.tgz","fileCount":33,"unpackedSize":564266,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCspAnIN2N8Mj1Bob+HLR4ixUmSgQkOHILM6MirXmjtAwIgLpRlnBhCotiEsJiUMhzhgLTzR7Rw+I9U9gitC5i5j+s="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.6_1695624349177_0.8610321464580959"},"_hasShrinkwrap":false},"0.7.4-experimental.7":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.7","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.7","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"c602050c19a55526c51cd8edc7fc02484a3e9034","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.6.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-v6PjqyDCl6FE8G1Bntp1J+I+eeWfUZYwrB/c4wEb2oVdqL7LdN3iH7EefZUjxiry/D9NvK3s/SXZEjBvhqB2zA==","shasum":"322bcaadd801d1aee71615f24feeffa3a4b9caf2","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.7.tgz","fileCount":33,"unpackedSize":564364,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGn8gje0WWfha/lEobdNn1rXVcoHi6+NputtgYgR028qAiBXlHdWB5JR7dKulgJS4kAff9e3BP2Xg1YNWiriDTYpTA=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.7_1695656242954_0.6548058099984568"},"_hasShrinkwrap":false},"0.7.4-experimental.8":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.8","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.8","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"341237b5ce2f4827b414e20090ee85931661bf1f","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.6.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Ic4nfIPXl2+OI1cfCsFuLw1dEp4d25Zm0G7Yg2mXQuv/nWLneyCEMFXMT+Rf1OD6JV6sUR7GjYQNTn+qX9Vf/w==","shasum":"ae8fda259c02cd9b8ed4ddb7950949c674c865a6","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.8.tgz","fileCount":33,"unpackedSize":564360,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+5ITTEZrR5X9h4NBAkjY5w9DyCl2jJrvCYRMnc+o8hAiEAt2hHsuQ0y101xNkBMPf6GNfoUstvDXT4NzEVVcnw4N8="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.8_1695657104824_0.4643308607666279"},"_hasShrinkwrap":false},"0.7.4-experimental.9":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react-dom":"^18.2.7","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2","react-dom":"^18.2.0"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.9","dependencies":{"@types/react":"^18.2.22","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.9","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"e710ffea72823c36864304e28cf535cfc0f83c5e","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-XX3YCyRu7XXcOhOpm4YM6Z1J3a0R81Jfg1ZVri4xbHbpkJ1pjEtoTtAvo2roJ+WSM2Pu74It7uNTENJx2miX5A==","shasum":"10a33fbceb2c7e4661d86926d1dd5e6531b60d39","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.9.tgz","fileCount":33,"unpackedSize":564866,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICUgJb9kwsFfueTcMoIrnBPuha4gFBEOaFnrA2rKaDL/AiA1U+hFtMFeU+ioQXrKWMzaqvjYOXU+NzNG11Pmra/iAg=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.9_1695954427741_0.7435529658611668"},"_hasShrinkwrap":false},"0.7.4-experimental.11":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react":"^18.2.23","@types/react-dom":"^18.2.8","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.11","dependencies":{"eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0","react-dom":"^18.2.0"},"_id":"bun-router@0.7.4-experimental.11","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"5cd31a1649730277cbefafe5ce05d77bca476957","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-06neBRUU3cq9dlBXCtQsgW5atois1skXAulIujiXnxzI7bl5l/K4GzibE1/yWnDtHc/LFB7pWO3OwKHrQuCPgw==","shasum":"4a1965203696c86ca6ff965cd331d23049449c2c","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.11.tgz","fileCount":35,"unpackedSize":566910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+fnMWI6mLe1di6RPU0Z1YuyAeiSCgf1V4g1pzLZe8mAiEAmIP3PApTCP2AqpTMznLArSfGHE2ckvoUAYKaWFiZuYU="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.11_1696132689444_0.5137137471870596"},"_hasShrinkwrap":false},"0.7.4-experimental.12":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react":"^18.2.23","@types/react-dom":"^18.2.8","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.7.4-experimental.12","dependencies":{"eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0","react-dom":"^18.2.0"},"types":"./lib/router.d.ts","_id":"bun-router@0.7.4-experimental.12","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md","gitHead":"b7933de869535d773f97f0387a1e532f31df72fe","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-UUA1FShvSmyXu2HM3xxiNv8Adpac1Y9hxKnGarnnA/tQpvYUezBSQhMDjJxwaKeDPlXSUFlgHuduJ5KdnZLSgQ==","shasum":"794980aeba754b7067d7669956de9987240d3dd9","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.7.4-experimental.12.tgz","fileCount":35,"unpackedSize":566982,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHiI0DLyp2dY0I2qVLdesEDJAC/ymw0MOkW10FXIqay/AiAHV2eLhdjWUkyOuPD3sYHMzRG8gX8i5wcowaU6FyJCqQ=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.7.4-experimental.12_1696206325018_0.5330761567152333"},"_hasShrinkwrap":false},"0.8.0":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react":"^18.2.23","@types/react-dom":"^18.2.8","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.8.0","dependencies":{"eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0","react-dom":"^18.2.0"},"types":"./lib/router.d.ts","_id":"bun-router@0.8.0","gitHead":"de45654d0c19fec9c303a08e7ca7f97dfe0199e2","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-AzHSoybynvCUAnUIDKmFsLolbcmDRkUs38O8+6VhO7sIhW1/xoTjFRy5bvYzFq2vskydwghF8ELdjhABV8dEtw==","shasum":"a84e2225848d44916eb74e0c222fd28e0ff3fea5","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.8.0.tgz","fileCount":35,"unpackedSize":567769,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGgFLUtBV7qTmfvhU6Hng7AY4C7+IvobJhLjtxB0xNPEAiATvLHpyiRCrZBqV6tAdDs98/R4xoCoFfsyXI9Zp9X4xw=="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.8.0_1697078670508_0.7691074910364877"},"_hasShrinkwrap":false},"0.8.1":{"name":"bun-router","module":"index.ts","type":"module","devDependencies":{"@types/react":"^18.2.23","@types/react-dom":"^18.2.8","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","bun-types":"latest","eslint":"^8.49.0","eslint-plugin-react":"^7.33.2"},"peerDependencies":{"typescript":"^5.0.0"},"version":"0.8.1","dependencies":{"eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0","react-dom":"^18.2.0"},"types":"./lib/router.d.ts","_id":"bun-router@0.8.1","gitHead":"8d1d739b199216d4e60558e206cf38a50396009b","description":"### Usage `npm i -s bun-router`","_nodeVersion":"20.8.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-N8bCm5YcUjvI18FY6ch5m6O7QYUMFJrWEIkdb0p7M9orYITj7Vd/Elt2aa5WCCyjDDR/J7VfEa87kuhASgi9TQ==","shasum":"e62b34e0a91cec0cf2b380522c317ee339505b85","tarball":"https://registry.npmjs.org/bun-router/-/bun-router-0.8.1.tgz","fileCount":35,"unpackedSize":656573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8YBj5NWyXQHxt1wP23xiOeYfRxuRi4mziuXqpoj0YRgIgIL8Z7iPrOwVxR0bQ1mB1zFh7oK/3zhAoL/59OpGuHT8="}]},"_npmUser":{"name":"aboxofsox","email":"idkwthfml@gmail.com"},"directories":{},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bun-router_0.8.1_1697608365832_0.0007507823623109644"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-28T05:53:32.299Z","0.2.0":"2023-07-28T05:53:32.470Z","modified":"2023-10-18T05:52:46.351Z","0.2.1":"2023-07-28T06:02:22.530Z","0.2.2":"2023-07-28T19:31:56.143Z","0.2.3":"2023-07-28T19:33:56.373Z","0.2.4":"2023-07-28T20:14:50.615Z","0.2.5":"2023-07-28T20:18:52.466Z","0.2.6":"2023-07-28T20:26:55.809Z","0.2.7":"2023-07-28T21:40:59.119Z","0.2.8":"2023-07-28T22:18:49.736Z","0.3.0":"2023-08-01T01:48:49.901Z","0.3.1":"2023-08-01T01:54:24.311Z","0.3.4":"2023-08-03T03:37:56.648Z","0.3.5":"2023-08-03T03:43:44.437Z","0.3.6":"2023-08-03T04:19:16.742Z","0.3.7":"2023-08-03T15:17:10.751Z","0.3.8":"2023-08-03T15:25:21.707Z","0.3.9":"2023-08-03T16:10:30.981Z","0.4.0":"2023-08-03T17:05:19.871Z","0.5.0":"2023-08-10T04:54:17.072Z","0.5.3":"2023-08-18T04:24:30.013Z","0.5.4":"2023-08-18T05:00:34.971Z","0.5.5":"2023-08-19T05:54:50.802Z","0.5.8":"2023-08-21T18:30:52.549Z","0.6.0":"2023-08-23T02:36:11.293Z","0.7.0":"2023-08-28T01:40:04.365Z","0.7.1":"2023-09-17T06:08:12.239Z","0.7.2":"2023-09-17T17:55:09.400Z","0.7.3":"2023-09-17T22:56:32.655Z","0.7.3-experimental.0":"2023-09-19T04:44:28.011Z","0.7.4-experimental.0":"2023-09-19T04:52:20.548Z","0.7.4-experimental.2":"2023-09-21T04:49:18.063Z","0.7.4-experimental.3":"2023-09-21T05:28:03.453Z","0.7.4-experimental.4":"2023-09-24T23:16:25.135Z","0.7.4-experimental.5":"2023-09-25T00:19:43.613Z","0.7.4-experimental.6":"2023-09-25T06:45:49.437Z","0.7.4-experimental.7":"2023-09-25T15:37:23.241Z","0.7.4-experimental.8":"2023-09-25T15:51:45.076Z","0.7.4-experimental.9":"2023-09-29T02:27:08.062Z","0.7.4-experimental.11":"2023-10-01T03:58:09.701Z","0.7.4-experimental.12":"2023-10-02T00:25:25.279Z","0.8.0":"2023-10-12T02:44:30.734Z","0.8.1":"2023-10-18T05:52:46.184Z"},"maintainers":[{"name":"aboxofsox","email":"idkwthfml@gmail.com"}],"description":"### Usage `npm i -s bun-router`","readme":"# Bun router\n\n### Usage\n`npm i -s bun-router` \n\nor \n\n`bun i bun-router`\n\n\n#### Examples\n##### URL Parameters\n```ts\nimport { Router, http } from 'bun-router';\n\nconst router = Router();\n\nrouter.add('/', 'GET', () => http.ok());\n\nrouter.get('/u/:username', ctx => {\n    const username = ctx.params.get('username');\n\n    if (!username) return http.badRequest();\n\n    return ctx.json({ username: username });\n});\n\nrouter.serve();\n```\n\n##### Static\nRead a directory and serve it's contents. `.tsx` and `.html` files are rendered by default, everything else is served, including the extension. \n\nEx: `/assets/gopher.png` would serve a `.png` image. `/home` would be `.tsx` or `.html` depending on extension.\n\n```ts\nimport { Router } from 'bun-router';\n\nconst router = Router();\n\nrouter.static('/assets', 'static');\n\nrouter.serve();\n```\n\n##### SQLite\n```ts\nimport { Router } from 'bun-router'\n\nconst router = Router(3000, { db: 'test.db'});\n\nrouter.post('/register', ctx => {\n    const query = ctx.db.query(\"select 'Hello' as message;\");\n\n    return http.ok(query.get());\n});\n\n```\n\n##### JSX\n```tsx\n// ./pages/home.tsx\nexport default const Home = (title: string) => {\n    return (\n        <main>\n            <h1>{ title }</h1>\n        </main>\n    );\n};\n```\n\n```ts\n// ./index.ts\nimport { Router } from 'bun-router';\nimport Home from './pages/home';\n\nconst router = Router();\n\nrouter.get('/', ctx => ctx.render(Home('Hello World')))\n\nrouter.serve();\n```\n\n\n","readmeFilename":"README.md"}