New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cache-coffee-express

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-coffee-express

This is a fork of "cache-express", with minor and specific changes to avoid caching in services that return code other than 2xx and others.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

Coffee Express Cache Middleware (Fork)

This is a fork of "cache-express", with minor and specific changes to avoid caching in services that return code other than 2xx and others.

Original Npm Page: https://www.npmjs.com/package/cache-express

Install and Usage

You can install the Express Cache Middleware package using npm. Open your terminal or command prompt and run the following command:

npm install cache-coffee-express

To use the Express Cache Middleware, simply import it and apply it as middleware to your Express.js routes.

import express from "express";
import expressCache from "cache-coffee-express";

const app = express();

// Apply the caching middleware to a route
app.get(
 "/api/data",
 expressCache({
  /*options*/
 })
);

Keywords

express

FAQs

Package last updated on 19 Nov 2024

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