Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 887 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 887 Bytes

fastpress

A blazing 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);  
});

Readings