# express-common-libs

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

Latest version **1.0.0** (published 2022-07-21) · Apache License license · 0 weekly downloads

## Install

```sh
npm install express-common-libs
pnpm add express-common-libs
yarn add express-common-libs
bun add express-common-libs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-07-21 |
| First published | 2022-07-21 |
| Weekly downloads | 0 |
| License | Apache License |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 24.8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Obi Tec |
| Maintainers | dev-obi-tec |
| Keywords | express, common, axios, node-cache |

## Links

- npm: https://www.npmjs.com/package/express-common-libs
- Repository: https://github.com/obi-tec/express-common-libs
- Homepage: https://github.com/obi-tec/express-common-libs#readme
- Issues: https://github.com/obi-tec/express-common-libs/issues
- npm.io page: https://npm.io/package/express-common-libs

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [node-cache](https://npm.io/package/node-cache.md) ^5.1.2
- [@obi-tec/logger-console](https://npm.io/package/@obi-tec/logger-console.md) ^1.0.3

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-07-21

## README

<p align="center">
  <a href="https://www.obitec.com.br/" target="_blank">
    <img src="https://media-exp1.licdn.com/dms/image/C4D0BAQEF_yY60ZuXMw/company-logo_100_100/0/1612555454150?e=1659571200&v=beta&t=J5EkLoozUME9lupU-MSfXHSWOqAfVnNrd320Xa9BPLM"/>
  </a>
</p>

<a name="description"></a>

# Express Common Libs
<p align="center">🚀 A simple library to implement standard libs that are used by express APIs</p>


<a name="content"></a>

###  🏁 Content
<!--ts-->
   * [Install](#install)
   * [Usage](#usage)
   * [Status](#status)
<!--te-->

<br>
<a name="install"></a>

# Install
```bash
npm install @obi-tec/express-common-libs
```
See all tags clicking <a href="https://github.com/obi-tec/express-common-libs/tags"> here</a>.

<a name="usage"></a>

# Usage
#### Axios Library
Implementation of axios library to log all sent requests and their respective duration.

```javascript
const { axios } = require('@obi-tec/express-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/express-common-libs');
const key = 'cache-key';
cosnt ttl = 300; // 5 minutes

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

<br>
<a name="status"></a>

# Status
<h4 align="center">
	🚧  Open for contribuitions...   🚧
</h4>

---
_Source: https://npm.io/package/express-common-libs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
