Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bhavin-prajapati/fastpress
- Owner: bhavin-prajapati
- License: mit
- Created: 2017-10-11T03:26:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T17:17:12.000Z (over 6 years ago)
- Last Synced: 2024-10-01T16:25:13.455Z (about 1 month ago)
- Language: JavaScript
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - fastpress - A blazing fast and simple HTTP library for NodeJS (JavaScript)
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)