0.0.50 • Published 2 months ago

@trenskow/app-express v0.0.50

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
2 months ago

@trenskow/app-express

A plugin for @trenskow/app that enables it to handle express.js routes.

⚠️ Be aware that this plugin is experimental. Not all features of express is currently supported.

Installation and usage

Installation is pretty simple. You install it by registering the plugin.

import { Application, Endpoint } from '@trenskow/app';
import express from '@trenskow/app-express'

Application.plugin(express);

const app = new Application({ port: 8080 });

const root = new Endpoint()
	.mount('ping', new Endpoint()
		.express((req, res, /* next */) => {
			res.json('pong')
		}));

await app
	.root(root)
	.open();

LICENSE

See license in LICENSE.

0.0.50

2 months ago

0.0.47

2 months ago

0.0.48

2 months ago

0.0.49

2 months ago

0.0.43

2 months ago

0.0.44

2 months ago

0.0.45

2 months ago

0.0.46

2 months ago

0.0.42

3 months ago

0.0.40

4 months ago

0.0.41

4 months ago

0.0.37

4 months ago

0.0.38

4 months ago

0.0.39

4 months ago

0.0.20

9 months ago

0.0.21

9 months ago

0.0.22

9 months ago

0.0.23

9 months ago

0.0.24

9 months ago

0.0.25

8 months ago

0.0.15

10 months ago

0.0.16

10 months ago

0.0.17

10 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.30

7 months ago

0.0.31

7 months ago

0.0.32

7 months ago

0.0.10

10 months ago

0.0.33

7 months ago

0.0.11

10 months ago

0.0.34

7 months ago

0.0.12

10 months ago

0.0.35

7 months ago

0.0.13

10 months ago

0.0.36

7 months ago

0.0.14

10 months ago

0.0.26

8 months ago

0.0.9

10 months ago

0.0.27

8 months ago

0.0.8

10 months ago

0.0.28

8 months ago

0.0.29

7 months ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago