@obi-tec/common-libs
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Common Libs

🚀 A simple library to implement standard libs that are used by express APIs

🏁 Content


Install

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.

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.

const { cache } = require('@obi-tec/common-libs');
const key = 'cache-key';
cosnt ttl = 300; // 5 minutes

cache.set(key, 'value', ttl);
cache.get(key);

Status

🚧 Open for contribuitions... 🚧

Package Sidebar

Install

npm i @obi-tec/common-libs

Weekly Downloads

85

Version

1.2.1

License

Apache License

Unpacked Size

19.7 kB

Total Files

9

Last publish

Collaborators

  • brunocamboim
  • jonatas.saraiva
  • dev-obi-tec