0.1.3 • Published 4 years ago

ez-servers v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

ez-servers

npm npm npm npm npm npm


Logo

: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,
})
0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago