@sfajs/router

sfajs 的路由插件

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@sfajs/router
2.1.53 months agoa year agoMinified + gzip package size for @sfajs/router in KB

Readme

sfajs Logo


sfajs - 面向云的现代渐进式轻量 Node.js 框架

<a href="https://github.com/sfajs/router/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="GitHub license" /></a>
<a href=""><img src="https://img.shields.io/npm/v/@sfajs/router.svg" alt="npm version"></a>
<a href=""><img src="https://badgen.net/npm/dt/@sfajs/router" alt="npm downloads"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/vite.svg" alt="node compatibility"></a>
<a href="#"><img src="https://github.com/sfajs/router/actions/workflows/test.yml/badge.svg?branch=main" alt="Build Status"></a>
<a href="https://codecov.io/gh/sfajs/router/branch/main"><img src="https://img.shields.io/codecov/c/github/sfajs/router/main.svg" alt="Test Coverage"></a>
<a href="https://github.com/sfajs/router/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
<a href="https://gitpod.io/#https://github.com/sfajs/router"><img src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod" alt="Gitpod Ready-to-Code"></a>
<a href="https://paypal.me/ihalwang" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>

介绍

@sfajs/routersfajs 的路由插件
  • 支持 RESTful 规范
  • 根据文件系统映射访问路径,彻底解耦无关联功能
  • 按需加载,提升请求速度
  • 轻量化,高可扩展性
  • 移除 controller 层,灵活性更高
  • 预编译路由,提升启动速度和响应速度

安装

npm install @sfajs/router

开始使用

请访问

贡献

请阅读 Contributing to @sfajs/router

贡献列表

License

@sfajs/router is MIT licensed.