1.0.0 • Published 7 years ago
servie-compat-http v1.0.0
Servie Compat HTTP
Map Servie
RequestandResponseinstances to node.js HTTP objects.
Installation
npm install servie-compat-http --saveUsage
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