sidra
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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));
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.71latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.71
0.1.60
0.1.50
0.1.43
0.1.30
0.1.20
0.1.10
0.1.00
0.0.80
0.0.73
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i sidra

Weekly Downloads

7

Version

0.1.7

License

GPL-3.0

Unpacked Size

244 kB

Total Files

133

Last publish

Collaborators

  • leydihavuc
  • ben_baris