A simple library to implement standard libs that are used by express APIs
npm install @obi-tec/common-libs🚀 A simple library to implement standard libs that are used by express APIs
bash
npm install @obi-tec/common-libs
`
See all tags clicking here.Usage
#### Axios Library
Implementation of axios library to log all sent requests and their respective duration.`javascript
const { axios } = require('@obi-tec/common-libs');const options = {};
await axios.default.get(url, options);
`
#### Node-Cache Library
Implementation of node-cache library to create a helper function to get and set.`javascript
const { cache } = require('@obi-tec/common-libs');
const key = 'cache-key';
cosnt ttl = 300; // 5 minutescache.set(key, 'value', ttl);
cache.get(key);
``