Reno路由库轻量、可测试的Deno HTTP路由方案

Reno 是一个相当轻量的路由库,专门为 Deno 的标准 HTTP 模块打造。它的特点是瘦,简单,容易上手,适合需要快速搭建路由的项目。如果你已经在用 Deno,想要更好地组织 HTTP 求和响应,这个库还是蛮合适的。通过createRoutertextResponse等工具,你可以方便地设置路由并控制响应内容,代码简洁又高效。

Reno 的设计不仅轻便,还注重可测试性,适合开发中需要频繁做单元测试的场景。如果你有用过类似的路由库,应该能快上手。不过需要注意的是,这个库的功能虽然简单,但对于一些复杂的需求,需要做一些扩展。所以,如果你项目对路由的需求较为基础,Reno 是一个不错的选择。

,如果你已经在用 Deno,Reno 可以为你的路由管理简单且高效的方案。它的 API 清晰,使用起来也不会太费劲。

zip
reno-master.zip 预估大小:53个文件
folder
reno-master 文件夹
file
.gitignore 920B
folder
reno 文件夹
file
pathparser_test.ts 1KB
file
pipe.ts 991B
file
router_test.ts 6KB
file
pathparser.ts 784B
file
mod.ts 758B
file
formethod_test.ts 2KB
file
helpers_test.ts 7KB
file
testing.ts 3KB
file
formethod.ts 1KB
file
cookies_test.ts 1KB
file
testing_test.ts 2KB
file
pipe_test.ts 1KB
file
helpers.ts 5KB
file
router.ts 5KB
file
cookies.ts 942B
file
LICENSE 1KB
file
tsconfig.json 372B
file
README.template.md 9KB
folder
.github 文件夹
folder
workflows 文件夹
file
ci.yml 475B
file
deps.ts 591B
folder
tools 文件夹
file
install_types.sh 140B
file
generate_readme.sh 80B
file
generate_readme.ts 784B
folder
scripts 文件夹
file
example.sh 74B
file
test.sh 58B
file
e2e.sh 67B
file
format.sh 67B
file
format_check.sh 75B
file
lint.sh 79B
file
README.md 9KB
file
Package.toml 125B
folder
example 文件夹
folder
api 文件夹
file
routes_test.ts 2KB
file
colossal.ts 12.58MB
file
routes.ts 2KB
file
api_keys.ts 325B
file
server.ts 247B
file
methods.ts 403B
file
routes.ts 1KB
file
app.ts 1KB
folder
e2e_tests 文件夹
file
deps.ts 149B
file
api_route_test.ts 2KB
file
home_route_test.ts 1KB
file
methods_route_test.ts 823B
file
.deno_version 6B
folder
.vscode 文件夹
file
settings.json 100B
file
launch.json 343B
file
test_utils.ts 2KB
folder
logo 文件夹
file
reno-square.png 29KB
file
reno.png 28KB
file
reno-500.png 14KB
file
src.svg 8KB
file
reno.svg 8KB
zip 文件大小:1.78MB