A blazing fast and simple HTTP library for NodeJS
- Only supports GET and POST Requests
- Webpack 3 based.
- ES6 as a source.
- Exports in a umd format so your library works everywhere.
- ES6 test setup with Mocha and Chai.
- Linting with ESLint.
const fastpress = require('fastpress');
const app = new fastpress();
app.get('/cat', (req, res) => {
res.send('meow!')
});
app.post('/dog', (req, res) => {
console.log(req.body);
res.send('bark!')
});
app.listen(8080, () => {
console.log('Server listening on ' + HOST + ':' + _port);
});