fastpress

1.0.16 • Public • Published

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

Readings

Package Sidebar

Install

npm i fastpress

Weekly Downloads

0

Version

1.0.16

License

MIT

Unpacked Size

246 kB

Total Files

19

Last publish

Collaborators

  • bprajapa