Skip to content

Commit

Permalink
docs: update installation step
Browse files Browse the repository at this point in the history
  • Loading branch information
skonves committed Feb 16, 2018
1 parent e352cb7 commit 168de9d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -12,11 +12,10 @@
# Express HTTP Context
Get and set request-scoped context anywhere. This is just an unopinionated, idiomatic ExpressJS implementation of [cls-hooked](https://github.com/Jeff-Lewis/cls-hooked) (forked from [continuation-local-storage](https://www.npmjs.com/package/continuation-local-storage)). It's a great place to store user state, claims from a JWT, request/correlation IDs, and any other request-scoped data. Context is preserved even over async/await (in node 8+).

(Note: For node v4-7, use the legacy 0.x.x package version.)

## How to use it

Install: `npm install --save express-http-context`
Install: `npm install --save express-http-context`
(Note: For node v4-7, use the legacy version: `npm install --save express-http-context@<1.0.0`)

Use the middleware. The earlier the better; you won't have access to the context from any middleware "used" before this one.

Expand Down

0 comments on commit 168de9d

Please sign in to comment.