Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bhavin-prajapati/fastpress

A blazing fast and simple HTTP library for NodeJS
https://github.com/bhavin-prajapati/fastpress

Last synced: 25 days ago
JSON representation

A blazing fast and simple HTTP library for NodeJS

Awesome Lists containing this project

README

        

# 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](https://github.com/umdjs/umd) format so your library works everywhere.
* ES6 test setup with [Mocha](http://mochajs.org/) and [Chai](http://chaijs.com/).
* Linting with [ESLint](http://eslint.org/).

## Misc

### An example of using fastpress

```js
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

* [Start your own JavaScript library using webpack and ES6](http://krasimirtsonev.com/blog/article/javascript-library-starter-using-webpack-es6)