2 ms·
I created Server.js https://serverjs.io/ https://serverjs.io/ and still use it. It is a wrapper around express: - With a bunch of middleware included and pre-c
by franciscop 4y ago
I created Server.js https://serverjs.io/ https://serverjs.io/ and still use it. It is a wrapper around express:
- With a bunch of middleware included and pre-configured, like body-parser, cookies, Helmet, etc. All express middleware works with Server.js
- async/await routers as expected: get('/users', async (ctx) => {...}); (ctx inspired by Koa)
- Websockets, where messages behave just as another route: socket('message', async ctx => { ... });