Skip to content

Fastify plugin to prevent Internet Explorer from executing downloads

License

Notifications You must be signed in to change notification settings

poppinlp/fastify-ie-no-open

Repository files navigation

fastify-ie-no-open

Build Status Code coverage Code style Dependency Status Dev Dependency Status NPM version NPM downloads NPM license

Fastify plugin to prevent Internet Explorer from executing downloads

Why?

You may know ie-no-open as a ie-no-open middleware used in helmet. And you could use it as a middleware in fastify also. So why i made this plugin?

You may find the reason in benchmark result and wish you like it. :)

Difference

This plugin has passed all ie-no-open test cases. And no difference in options.

Install

Via npm:

npm i fastify-ie-no-open

Via yarn:

yarn add fastify-ie-no-open

Usage

const fastify = require('fastify');
const fastifyIeNoOpen = require('fastify-ie-no-open');

const app = fastify();
app.register(fastifyIeNoOpen);

app.listen(3000, err => {
  if (err) throw err;
});

Changelog

  • 0.2.0
    • Add test case
    • Add code coverage
    • Add benchmarks
  • 0.1.0:
    • Init version

About

Fastify plugin to prevent Internet Explorer from executing downloads

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published