fastpress
v1.0.16
Published
A fast and simple HTTP library for NodeJS
Downloads
20
Maintainers
Readme
fastpress
A fast and simple HTTP library for NodeJS
Features
- 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.
Misc
An example of using fastpress
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);
});