0.1.7 • Published 1 year ago

sidra v0.1.7

Weekly downloads
19
License
GPL-3.0
Repository
github
Last release
1 year ago

Banner build supportServer totalDownloads weeklyDownloads version stars license

⚔️ SidraJS

Sidra offers you many decorators for you to use with the Cloudflare Workers.

TypeScript definitions are built in.

Installation

  • Run
    $ npm install sidra
    or
    $ yarn add sidra

Docs

https://barbarbar338.github.io/sidra/

Examples

See https://github.com/barbarbar338/sidra-template

import { type APIRes, Controller, Get, Handle, HTTPStatus } from "sidra";

@Controller()
class MyController {
	@Get()
	get(): APIRes<string> {
		return {
			data: "Hello World",
			message: "Hello World",
			statusCode: HTTPStatus.OK,
		};
	}
}

const handler = Handle([MyController]);

addEventListener("fetch", (event) => {
	event.respondWith(handler(event.request));
});
0.1.7

1 year ago

0.1.6

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.5

1 year ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago