Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@obi-tec/express-common-libs

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@obi-tec/express-common-libs

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

unpublished
latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
3
Created
Source

Express Common Libs

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

🏁 Content


Install

npm install @obi-tec/express-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/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.

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);

Status

🚧 Open for contribuitions... 🚧

Keywords

express

FAQs

Package last updated on 21 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts