1.4.2 • Published 8 months ago

insaner v1.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Insaner - Decidedly Opinionated Minimal NodeJS Http Server

This package is an opinionated HTTP server built on top of the native NodeJS HTTP server.

  • No callbacks! Pure Promise bliss.
  • There is a simple regexp-based router.
  • Response object is not passed into request handlers, instead request handlers are expected to return a Response object.
  • Request body consumption and parsing is done on-demand similarly to the fetch Response, ie. await req.text() and await req.json(); consumed raw body is cached, so multiple calls to req.text() and req.json() are possible (JSON parsing is done each time you call req.json() so that you can be sure you get the unmodified data, no matter what your middlewares do).
  • Also, cookies work out of the box.
  • WebSocket compatible.
  • Typings included.

Check out the GitHub repository for more information and docs.

1.4.2

8 months ago

1.4.1

8 months ago

1.4.0

8 months ago

1.3.0

1 year ago

1.2.0

1 year ago

1.2.1

1 year ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.0

3 years ago