@lambda-middleware/ie-no-open

A middleware for adding the download options no-open header to AWS lambdas.

Usage no npm install needed!

<script type="module">
  import lambdaMiddlewareIeNoOpen from 'https://cdn.skypack.dev/@lambda-middleware/ie-no-open';
</script>

README

@lambda-middleware/ie-no-open

npm version downloads open issues debug build status codecov dependency status devDependency status

A middleware for adding the download options no-open header for Internet Explorer to AWS lambdas.

Lambda middleware

This middleware is part of the lambda middleware series. It can be used independently.

Usage

import { ieNoOpen } from "@lambda-middleware/ie-no-open";

// This is your AWS handler
async function helloWorld() {
  return {
    statusCode: 200,
    body: "",
  };
}

// Wrap the handler with the middleware
export const handler = ieNoOpen()(helloWorld);