1.5.10 • Published 12 months ago

futen v1.5.10

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Get started with:

bun init

bun i futen
import Futen, { route } from 'futen';

@route('/')
class Index {
    public get() {
        return new Response('Hello, World!');
    }
}

const server = new Futen({
    Index
});

console.log(`Server is running at http://localhost:${server.instance.port}`);

Know how

route defines an HTTP/REST route class which reserves the following methods as "keywords":

  • get
  • head
  • post
  • put
  • delete
  • connect
  • options
  • trace
  • patch

ws, similarly to the route decorator, reserves WebSocket event "keywords", which are documented in the Bun websocket docs, directly referencing the following methods:

  • message
  • open
  • close
  • drain
  • ping
  • pong

To see how they could be used check out the examples


Contributors

🤝 Become a contributor!

1.5.10

12 months ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.4.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago