Skip to content

Commit

Permalink
Merge branch 'main' into release-please--branches--main--components--…
Browse files Browse the repository at this point in the history
…hono-alibaba-cloud-fc3-adapter
  • Loading branch information
rwv authored Nov 25, 2024
2 parents 4688cd8 + dd0b4ce commit c284e7e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
node-version: [latest, 18, 20, 22]
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]

permissions:
# Required to checkout the code
Expand Down
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Hono Alibaba Cloud FC3 Adapter

[![Build](https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/actions/workflows/build.yml/badge.svg)](https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/actions/workflows/build.yml)

An adapter for using [Hono](https://hono.dev) with [Alibaba Cloud Function Compute 3.0](https://www.alibabacloud.com/help/en/functioncompute/fc-3-0).

一个用于在[阿里云函数计算 FC 3.0](https://help.aliyun.com/zh/functioncompute/fc-3-0/) 中使用 [Hono](https://hono.dev) 的适配器。

## Installation

```bash
npm install hono-alibaba-cloud-fc3-adapter
```

## Usage

```typescript
import { Hono } from "hono";
import { handle } from "hono-alibaba-cloud-fc3-adapter";

const app = new Hono();

app.get("/", (c) => c.text("Hello Hono!"));

export const handler = handle(app);
```
25 changes: 20 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "hono-alibaba-cloud-fc3-adapter",
"version": "1.0.0",
"description": "",
"main": "index.js",
"description": "An adapter for using Hono with Alibaba Cloud Function Compute 3.0",
"main": "lib/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"files": [
"lib"
],
"scripts": {
"build": "tsc",
"lint": "eslint --fix .",
Expand All @@ -15,9 +20,19 @@
"test": "vitest",
"coverage": "vitest --coverage"
},
"keywords": [],
"author": "",
"license": "ISC",
"keywords": [
"hono",
"alibaba cloud",
"function compute",
"fc"
],
"author": "rwv",
"license": "MIT",
"repository": "https://github.com/rwv/hono-alibaba-cloud-fc3-adapter",
"homepage": "https://github.com/rwv/hono-alibaba-cloud-fc3-adapter",
"bugs": {
"url": "https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/issues"
},
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"devDependencies": {
"@commitlint/cli": "^19.6.0",
Expand Down

0 comments on commit c284e7e

Please sign in to comment.