0.1.3 • Published 4 years ago
ez-servers v0.1.3
ez-servers
:boom: ESM The easiest way to create tcp, udp, http, https, http2 or tls server in Node.js
Example
import { http2Server, httpServer, https2Server, httpsServer, tcpServer, tlsServer, udpServer } from 'ez-servers'
const tcp = await tcpServer({
host,
port,
})
const tls = await tlsServer({
cert,
host,
key,
port,
})
const http = await httpServer({
host,
port,
})
const https = await httpsServer({
cert,
host,
key,
port,
})
const http2 = await http2Server({
host,
port,
})
const https2 = await https2Server({
cert,
host,
key,
port,
})
const udp = await udpServer({
host,
port,
})