1.0.1 • Published 1 year ago

@etrigan/config-express-middleware v1.0.1

Weekly downloads
452
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.0

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago