Skip to content

A typescript express app with monadic middlewares and typestates.

License

Notifications You must be signed in to change notification settings

mkulke/hyper-ts-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyper-ts playground

A typescript express app with monadic middlewares and typestates. Query parameters are parsed/validated and a request-id is attached to the responses.

Build

npm i
$(npm bin)/tsc -p .

Run

node dist/index.js
curl -D - "localhost:3000/hello?name=mgns&age=42" -H "x-request-id: abc"
HTTP/1.1 400 Bad Request
X-Powered-By: Express
X-Request-Id: abc
Content-Type: text/html; charset=utf-8
Content-Length: 8
ETag: W/"8-yqzevzlRHR4rmJG8R1oMx5rj2k8"
Date: Sat, 04 Dec 2021 23:26:36 GMT
Connection: keep-alive
Keep-Alive: timeout=5

too old!

About

A typescript express app with monadic middlewares and typestates.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published