fastify-no-sniff
Fastify plugin to prevent mimetype from being sniffed
Why?
You may know dont-sniff-mimetype as a dont-sniff-mimetype 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. :)
Install
Via npm:
npm i fastify-no-sniff
Via yarn:
yarn add fastify-no-sniff
Usage
const fastify = ;const fastifyNoSniff = ; const app = ;app; app;
Changelog
- 0.2.0:
- Add test case
- Add code coverage
- Add benchmarks
- 0.1.1:
- Init version