# tcb-function-router

> tcb-function-router

Latest version **1.0.3** (published 2024-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install tcb-function-router
pnpm add tcb-function-router
yarn add tcb-function-router
bun add tcb-function-router
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2024-01-28 |
| First published | 2022-09-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Will |
| Maintainers | willlll |

## Links

- npm: https://www.npmjs.com/package/tcb-function-router
- Repository: https://github.com/OOWhereAreYou/tcb-function-router
- Homepage: https://github.com/OOWhereAreYou/tcb-function-router#readme
- Issues: https://github.com/OOWhereAreYou/tcb-function-router/issues
- npm.io page: https://npm.io/package/tcb-function-router

## Recent versions

- 1.0.3 (latest) — 2024-01-28
- 1.0.2 — 2022-09-14
- 1.0.1 — 2022-09-14
- 1.0.0 — 2022-09-13

## README

刚学js、ts，根据个人使用习惯改写了 simple-cloudbase-router
```
https://www.npmjs.com/package/simple-cloudbase-router
https://github.com/sonofmagic/simple-cloudbase-router
```

```javascript
// 云函数的 index.js
const app = require("./src/index");
const router = app.compose([
  // 全局中间件处理
  async (ctx, next) => {
    ctx.body = "Hello router!";
    await next();
  },
]);
exports.main = async (event, context) => {
  return await app.run(event, context,router);
};


```

---
_Source: https://npm.io/package/tcb-function-router · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
