JavaScript Tools: Sharing dependencies across a request with express-http-context

preview_player
Показать описание
Sharing dependencies across http requests in express can be simple with the express-http-context package.

Sometimes it's not convenient to pass every dependency down as an argument and it would be nice if the function was just smart enough to know it was in an http context.

The express-http-context package:

How I setup my ESLint + Prettier:

Express Easy Routes:
Рекомендации по теме
Комментарии
Автор

thanks joel simple and to the point wouldnt have heard of this library otherwise

susiebaka
Автор

thank you for this video and yes this video is good enough for to understand httpContext.

aarifalam
Автор

Hi Sir, To have a unique request id to trace the logs across all routes which were consumed by a particular http request(user) can we use that pakage !?

rahulk
welcome to shbcf.ru