https://github.com/serviejs/servie-compat-http
**DEPRECATED** Map Servie `Request` and `Response` instances to node.js HTTP compatible objects
https://github.com/serviejs/servie-compat-http
compat connect express http nodejs router
Last synced: 3 months ago
JSON representation
**DEPRECATED** Map Servie `Request` and `Response` instances to node.js HTTP compatible objects
- Host: GitHub
- URL: https://github.com/serviejs/servie-compat-http
- Owner: serviejs
- License: other
- Created: 2017-01-20T06:47:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-19T09:18:44.000Z (over 7 years ago)
- Last Synced: 2025-08-17T06:55:44.316Z (6 months ago)
- Topics: compat, connect, express, http, nodejs, router
- Language: TypeScript
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Servie Compat HTTP
[](https://npmjs.org/package/servie-compat-http)
[](https://npmjs.org/package/servie-compat-http)
[](https://travis-ci.org/serviejs/servie-compat-http)
[](https://coveralls.io/r/serviejs/servie-compat-http?branch=master)
> Map Servie `Request` and `Response` instances to node.js HTTP objects.
**DEPRECATED:** As an interesting experiment someone can reference.
## Installation
```
npm install servie-compat-http --save
```
## Usage
```ts
import { createServer } from 'servie-compat-http'
export const server = createServer(function (req, res, next) {
res.write('hello world')
res.end()
})
```
## Additional Resources
* [`router`](https://github.com/pillarjs/router) Express.js-like router for HTTP
* [`compose-middleware`](https://github.com/blakeembrey/compose-middleware) Compose an array of HTTP middleware into a single function
* [`connect`](https://github.com/senchalabs/connect) Simple middleware framework
* [`express`](https://github.com/expressjs/express) Minimal web framework for node
## TypeScript
This project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.
## License
Apache 2.0