Skip to content
/ mamba Public

Fast, express compatible http web server using uWebSockets.js

License

Notifications You must be signed in to change notification settings

dreesq/mamba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mamba

Fast, express compatible http web server using uWebSockets.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'));

About

Fast, express compatible http web server using uWebSockets.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published