1.0.1 • Published 3 years ago

@etrigan/config-express-middleware v1.0.1

Weekly downloads
452
License
MIT
Repository
github
Last release
3 years ago

Etrigan Config express middleware

Express middleware to make config available on your request

Usage

import { expressConfigMiddleware } from '@etrigan/config-express-middleware'

let config: MyConfig

express.use(expressConfigMiddleware(() => config))

Updating config

The config will be fetched for each request. Config should never be mutated, instead set a new value for the config variable above, then the next request will get the new config. In flight requests will keep their old config until completion.

1.0.1

3 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago