A collection of middlewares for express
- express-nemo-auth0-jwt-verify
- express-nemo-correlation-id
- express-nemo-error-logger
- express-nemo-error-response
- express-nemo-logger
- express-nemo-performance
- express-nemo-request-response-logger
- express-nemo-route-health
- express-nemo-route-not-found
- express-nemo-route-ping
All packages are versioned using semver. In essence, having installed version 1.0.0, version 2.0.0 is to be considered breaking while 1.9.0 is not.
npm install --save express-nemo-correlation-idconst express = require('express')
const router = express.Router()
const middleware = require('express-nemo-correlation-id')
router.use(middleware)Some middlewares are configurable (see each package for configuration options).
A script that generate the boilerplate for a new middleware.
./scripts/create-middleware express-nemo-[NAME]After git clone you can run npm init on all of the middlewares.
./scripts/initThis runs test on all of the middlewares.
./scripts/test- User must be in the collaborators for "stena-it" organization
- cd to the middleware you wish to publish
Update x in version x.0.0 (eg. breaking change was made)
npm version majorUpdate y in version 1.y.0 (eg. a feature was added )
npm version minor
Update z in version 1.0.z (eg. a fix internally was applied that do not effect the interface)
npm version patchgit add package.json
git commit -m "bump version to x.y.z"
git pushnpm publish