express-api-common
v4.2.0
Published
express api configured with logging, healthcheck, prometheus metrics, and other things I commonly use
Downloads
25
Readme
express-api-common
express server configured with servicebus middleware, and prometheus exporters, and request (leveled optional) logging
Usage
import log from 'llog'
import makeServer from 'express-api-common'
const options = {
logger: log
}
const server = makeServer(options)
server.use('/', () => {
//...
})
server.start(PORT, onServerListen)