Servie Compat HTTP
May 19, 2018 ยท View on GitHub
Map Servie
RequestandResponseinstances to node.js HTTP objects.
DEPRECATED: As an interesting experiment someone can reference.
Installation
npm install servie-compat-http --save
Usage
import { createServer } from 'servie-compat-http'
export const server = createServer(function (req, res, next) {
res.write('hello world')
res.end()
})
Additional Resources
routerExpress.js-like router for HTTPcompose-middlewareCompose an array of HTTP middleware into a single functionconnectSimple middleware frameworkexpressMinimal web framework for node
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
Apache 2.0