https://github.com/dreesq/mamba
Fast, express compatible http web server using uWebSockets.js
https://github.com/dreesq/mamba
Last synced: about 1 year ago
JSON representation
Fast, express compatible http web server using uWebSockets.js
- Host: GitHub
- URL: https://github.com/dreesq/mamba
- Owner: dreesq
- License: mit
- Created: 2019-06-29T09:36:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T12:52:09.000Z (over 5 years ago)
- Last Synced: 2025-04-18T11:44:28.686Z (about 1 year ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mamba
Fast, express compatible http web server using uWebSockets.js
```js
const mamba = require('@dreesq/mamba');
const app = mamba();
let i = 0;
const test = async (req, res, next) => {
++i;
next();
};
app.get('/:x', test, async (req, res) => {
res.end(`${i}-${req.params.x}`);
});
app.listen(8080, () => console.log('listening on port 8080'));
```