Increment version in package.json file `major.minor.patch`
npm install @cobot/sharedIncrement version in package.json file major.minor.patch
```
npm run build
``
npm publish --access public
``
npm install @cobot/shared
#### To use the morganMiddeware
- import the middleware
``
import { morganMiddleware } from '@cobot/shared';`
- add it to main file of your project `
app.use(morganMiddleware);`
#### To use the errorHandler middleware
- import the middleware`
import { errorHandler } from '@cobot/shared';`
- add it to main file of your project `
app.use(errorHandler);`
#### To use the camelToSnake middleware
- import the middleware`
import { camelToSnake } from '@cobot/shared';`
- add it to main file of your project `
app.use(camelToSnake);`
#### To use the ipinfo middleware
- install the ipinfo package`
npm i node-ipinfo`
- import the middleware`
import { ipToGeoMiddleware } from '@cobot/shared';`
- create a ipinfoWrapper instance and save it in the app locals in the main file as`
app.locals.ipinfoWrapper = new IPinfoWrapper('your-token')`
- add the middleware as``
app.use(ipToGeoMiddleware)