1.1.3 • Published 1 year ago
cloudflare-framework v1.1.3
🎊cloudflare-framework
🎃 對 cloudflare 常用功能的封裝~
🔋 Getting Started
详见cloudflare官网 -> Wrangler
# 安裝 cloudflare-framework
npm install cloudflare-framework
👩 💻 Developing
examples
中引入了各个示例,亦可删除所有代码编写自己的逻辑。
import { App, type Context } from 'cloudflare-framework';
const app = new App();
app.use(async (ctx: Context) => {
const prop = await ctx.toProp();
console.log('當前請求參數', prop)
// return 的数据将输出到浏览器
return 'hello world';
});
// 最后需要将 实例导出
export default app;