Skip to content

Files

Latest commit

e539942 · Apr 13, 2022

History

History

ie-no-open

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 1, 2021
Apr 13, 2022
Sep 1, 2021
Aug 10, 2020
Aug 9, 2020
Oct 23, 2020
Oct 23, 2020
Aug 9, 2020
Sep 1, 2021
Aug 10, 2020
Aug 10, 2020
Jan 19, 2022
Aug 10, 2020
Aug 10, 2020

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